-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
40 lines (39 loc) · 886 Bytes
/
docker-compose.dev.yml
File metadata and controls
40 lines (39 loc) · 886 Bytes
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
---
version: '3'
services:
devMessageStore:
build:
context: .
dockerfile: Dockerfile
image: message_app:dev
environment:
MS_PORT: 9000
MS_DB_USER: message_app
MS_DB_PASS: message_app_password
MS_DB_HOST: devMessageStoreDB
depends_on:
- devMessageStoreDB
ports:
- "9000:9000"
networks:
- devapp-network
command: ./bin/docker/wait-for-db.sh ./bin/docker/run-dev.sh
volumes:
- .:/home/node/app
devMessageStoreDB:
container_name: message_store_devdb
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- "4406:3306"
volumes:
- message_devdb_volume:/var/lib/mysql
- ${PWD}/database/init:/docker-entrypoint-initdb.d
networks:
- devapp-network
volumes:
message_devdb_volume:
networks:
devapp-network:
driver: bridge