-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.68 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3"
services:
fuadmin-django:
build:
context: .
dockerfile: ./docker/django/Dockerfile
container_name: fuadmin-django
depends_on:
- fuadmin-mysql
environment:
TZ: Asia/Shanghai
ports:
- 8000:8000
expose:
- 8000
restart: always
fuadmin-web:
container_name: fuadmin-web
build:
context: ./
dockerfile: ./docker/web/Dockerfile
depends_on:
- fuadmin-django
ports:
- 8080:8080
expose:
- 8080
volumes:
- ./docker/web/nginx.conf:/etc/nginx/conf.d/fuadmin.conf
environment:
TZ: Asia/Shanghai
fuadmin-mysql:
image: mysql:8
container_name: fuadmin-mysql
restart: always
ports:
- 33060:3306
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "fuadmin"
TZ: Asia/Shanghai
volumes:
- mysql:/var/lib/mysql
fuadmin-redis:
image: redis:7-alpine
container_name: fuadmin-redis
restart: on-failure
environment:
- TZ=Asia/Shanghai
ports:
- 63790:6379
expose:
- 6379
volumes:
- redis:/data
fuadmin-celery:
build:
context: .
dockerfile: ./docker/celery/Dockerfile
container_name: fuadmin-celery
depends_on:
- fuadmin-mysql
environment:
TZ: Asia/Shanghai
restart: always
volumes:
mysql:
redis: