forked from e-m-b-a/embark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
54 lines (48 loc) · 1.02 KB
/
docker-compose-dev.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
version: "3"
services:
embark_db:
container_name: embark_db_dev
image: mysql
expose:
- "3306"
ports:
- "3306:3306"
restart: always
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_PASSWORD
- MYSQL_USER
- MYSQL_DATABASE
volumes:
- ./embark_db:/var/lib/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
embark_dev:
ipv4_address: "172.21.0.5"
redis:
container_name: embark_redis_dev
image: "redis:5"
command: --port 7777
expose:
- "7777"
ports:
- "7777:7777"
restart: always
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
embark_dev:
ipv4_address: "172.21.0.8"
logging:
driver: "local"
networks:
embark_dev:
name: embark_dev
driver: bridge
driver_opts:
com.docker.network.bridge.name: embark_dev
ipam:
config:
- subnet: "172.21.0.0/16"