-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
51 lines (47 loc) · 1007 Bytes
/
docker-compose.yaml
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
services:
app:
build:
dockerfile: ./anni/Dockerfile
context: ../
env_file: .env
ports:
- ${PRODUCTION_PORT}:3000
depends_on:
- anni-db
profiles:
- production
restart: unless-stopped
anni-db:
image: mongo:5.0
volumes:
- anni_db:/var/lib/mongodb/data
ports:
- ${DB_PORT}:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=${DB_USER}
- MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD}
restart: unless-stopped
anni-testing-db:
image: mongo:5.0
volumes:
- anni_testing_db:/var/lib/mongodb/data
ports:
- ${_TEST_DB_PORT}:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=${DB_USER}
- MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD}
profiles:
- dev
backupper:
build:
context: ./anni/backupper
env_file:
- backupper/.env
depends_on:
- app
profiles:
- with-backupper
restart: unless-stopped
volumes:
anni_db:
anni_testing_db: