-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
58 lines (53 loc) · 1.28 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
version: "3.8"
services:
api:
build:
dockerfile: Dockerfile
image: sagas_cqrs
container_name: sagas_cqrs
ports:
- "3002:3002"
command: npm run start:dev
depends_on:
- mysql
- redis
volumes:
- ./:/usr/local/node-sagas-cqrs
networks:
- demo
mysql:
image: mysql:${MYSQL_VERSION}
ports:
- "${FORWARD_MYSQL_PORT:-3306}:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
command: --default-authentication-plugin=mysql_native_password
volumes:
- "drive_mysql:/var/lib/mysql"
- ./docker/mysql/init:/docker-entrypoint-initdb.d
networks:
- demo
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
ports:
- "${FORWARD_RABBITMQ_PORT:-5672}:5672"
- "${FORWARD_RABBITMQ_DASHBOARD_PORT:-15672}:15672"
volumes:
- drive_rabbitmq:/var/lib/rabbitmq/
- drive_rabbitmq:/var/log/rabbitmq
networks:
- demo
networks:
demo:
driver: bridge
volumes:
drive_mysql:
driver: local
drive_rabbitmq:
driver: local