-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 828 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 828 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
41
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:8080'
environment:
NEXTAUTH_URL: ${NEXTAUTH_URL}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
AUTH_TRUST_HOST: 'true'
MONGO_URI: ${MONGO_URI}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
depends_on:
mongo:
condition: service_healthy
networks:
- app-network
mongo:
image: mongo:latest
restart: always
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
networks:
- app-network
healthcheck:
test: ['CMD', 'mongosh', '--eval', 'db.adminCommand("ping")']
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
volumes:
mongo_data:
networks:
app-network: