-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
docker-compose.yml
57 lines (53 loc) · 1.18 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
---
services:
embark_db:
container_name: embark_db
image: mysql:latest
labels:
flag: "EMBArk_server_mysql_container"
env_file:
- .env
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
expose:
- "3306"
restart: always
volumes:
- ./mysql.cnf:/etc/my.cnf
- ./mysql-init:/docker-entrypoint-initdb.d
- ./embark_db:/var/lib/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
embark_backend:
ipv4_address: "172.22.0.5"
logging:
driver: "local"
embark_redis:
container_name: embark_redis
image: "redis:5"
labels:
flag: "EMBArk_server_redis_container"
env_file:
- .env
command: --port 7777
expose:
- "7777"
restart: always
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
embark_backend:
ipv4_address: "172.22.0.8"
logging:
driver: "local"
networks:
embark_backend:
name: embark_backend
driver: bridge
driver_opts:
com.docker.network.bridge.name: embark_backend
ipam:
config:
- subnet: "172.22.0.0/16"