forked from e-m-b-a/embark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (78 loc) · 1.67 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
77
78
79
80
81
82
83
84
version: "3"
services:
embark_db:
image: mysql
container_name: embark_db
restart: always
expose:
- "3306"
env_file:
- .env
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_PASSWORD
- MYSQL_USER
- MYSQL_DATABASE
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- embark_backend
embark:
image: embark:latest
container_name: embark_server
build: .
restart: always
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./embark/:/app/embark/
- ./emba/:/app/emba/
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "80:80"
networks:
- embark_frontend
- embark_backend
env_file:
- .env
environment:
- DATABASE_NAME
- DATABASE_USER
- DATABASE_HOST
- DATABASE_PORT
- DATABASE_PASSWORD
- DJANGO_LOG_LEVEL
- DEBUG=False
- REDIS_HOST
- REDIS_PORT
command: './entrypoint.sh'
depends_on:
- embark_db
- redis
redis:
image: "redis:5"
container_name: embark_redis
command: --port 7777
expose:
- "7777"
restart: always
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- embark_backend
networks:
embark_frontend:
name: embark_frontend
driver: bridge
driver_opts:
com.docker.network.bridge.name: embark_frontend
embark_backend:
name: embark_backend
driver: ipvlan
internal: true
ipam:
config:
- subnet: "172.22.0.0/16"