-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 902 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 902 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
services:
mongo:
image: mongo:7
container_name: desercion_mongo
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: desercion_backend
restart: unless-stopped
environment:
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY:-dev-secret-change-me}
DJANGO_DEBUG: ${DJANGO_DEBUG:-True}
DJANGO_ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS:-*}
MONGO_URI: ${MONGO_URI:-mongodb://mongo:27017/}
MONGO_DB_NAME: ${MONGO_DB_NAME:-desercion_db}
ports:
- "8080:8080"
depends_on:
- mongo
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: desercion_frontend
restart: unless-stopped
ports:
- "3001:3000"
depends_on:
- backend
volumes:
mongo_data: