-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (61 loc) · 1.29 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
version: '3.8'
services:
mongodb:
image: mongo
container_name: syncm8_mongo
restart: unless-stopped
command: mongod --auth
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: main
MONGODB_DATA_DIR: /data/db
volumes:
- mongodbdata:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
networks:
- backend
ports:
- 27017:27017
mysql:
image: mysql:8.0.23
platform: linux/x86_64
container_name: syncm8_mysql
volumes:
- mysql_data:/var/lib/mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: main
MYSQL_USER: user
MYSQL_PASSWORD: password
networks:
- backend
ports:
- 3306:3306
dev:
image: public.ecr.aws/a5f0m6q3/syncm8_dev:${DEVBOX_VERSION}
container_name: syncm8_dev
ports:
- "5000:5000"
depends_on:
- mongodb
- mysql
volumes:
- type: bind
source: ./
target: /home/worker/app
networks:
- backend
env_file:
- ./dev.env
stdin_open: true
tty: true
networks:
backend:
driver: bridge
volumes:
mongodbdata:
driver: local
mysql_data:
driver: local