-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (85 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
87 lines (85 loc) · 2 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
- frontend
- web
networks:
- app-network
db:
image: mongo:latest
container_name: mongodb_db
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
command: mongod --quiet
networks:
- app-network
redis:
image: redis:latest
container_name: redis_cache
ports:
- "6379:6379"
networks:
- app-network
web:
build:
context: ./codraw
dockerfile: Dockerfile
container_name: django_web
command: daphne -b 0.0.0.0 -p 8080 codraw.asgi:application
expose:
- "8080"
volumes:
- ./codraw:/app
- /usr/local/lib/python3.12/site-packages
- ./credentials.json:/app/credentials.json
depends_on:
- db
environment:
- PYTHONPATH=/app
- GOOGLE_APPLICATION_CREDENTIALS=/app/credentials.json
- GOOGLE_BUCKET=codrawapp-preview-access
env_file:
- .env.prod
networks:
- app-network
frontend:
build:
context: ./codraw/frontend
dockerfile: Dockerfile
args:
- VUE_APP_BASE_URL=https://codrawapp.com/api
- VUE_APP_WS_URL=wss://codrawapp.com/ws/socket
- VUE_APP_GTAG=G-QW19P198KB
- VUE_APP_GOOGLE_ID=373387543374-fsreaovr782e5faifv2f7128jq6ch4n3
container_name: vue_frontend
expose:
- "80"
networks:
- app-network
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
networks:
- app-network
volumes:
mongo_data:
prometheus_data:
networks:
app-network:
driver: bridge