-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1.1 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
version: '3.1'
services:
database_coffeemug-api:
container_name: database_coffeemug-api
image: mongo:latest
restart: always
# volumes:
# - ${PWD}/database/volume:/data/db
networks:
- network_coffeemug-api
logging:
driver: "none"
environment:
- MONGO_INITDB_ROOT_USERNAME=${DB_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD}
- MONGO_INITDB_DATABASE=${DB_INITIALDB}
seed_coffeemug-api:
container_name: seed_coffeemug-api
build:
context: ./database/seed/.
args:
- DB_HOST=${DB_HOST}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_INITIALDB=${DB_INITIALDB}
networks:
- network_coffeemug-api
depends_on:
- database_coffeemug-api
backend_coffeemug-api:
container_name: backend_coffeemug-api
ports:
- ${PORT}:${PORT}
build:
context: ./.
args:
- PORT=${PORT}
networks:
- network_coffeemug-api
restart: on-failure
depends_on:
- seed_coffeemug-api
networks:
network_coffeemug-api:
driver: "bridge"