-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
36 lines (32 loc) · 937 Bytes
/
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
services:
mongo:
image: bitnami/mongodb:5.0
volumes:
- mongo-data:/data/db
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
environment:
MONGODB_REPLICA_SET_MODE: primary
ALLOW_EMPTY_PASSWORD: 'yes'
backend:
image: semicolon-backend:v1-prod
build:
context: .
target: production
dockerfile: Dockerfile
ports:
- "3000:3000"
command: npm run deploy-linux
environment:
- PROD_SESSION_SECRET=secret
- SESSION_SECRET=secret
- PORT=3000
- NODE_ENV=production
- DEV_DB_URL=mongodb://mongo:27017/semicolon-dev?directConnection=true
- PROD_DB_URL=mongodb://mongo:27017/semicolon-prod?directConnection=true
- TEST_DB_URL=mongodb://mongo:27017/semicolon-test?directConnection=true
depends_on:
mongo:
condition: service_healthy
volumes:
mongo-data: