-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 934 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) · 934 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
42
43
44
services:
nginx-certbot:
image: jonasal/nginx-certbot:5.4.0-nginx1.27.2
container_name: nginx-certbot
restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
CERTBOT_EMAIL: ${CERTBOT_EMAIL}
volumes:
- ./nginx_secrets:/etc/letsencrypt
- ./user_conf.d:/etc/nginx/user_conf.d:ro
networks:
- app-network
depends_on:
- auth-service
- fastapi-app
fastapi-app:
image: ${FASTAPI_DOCKER_IMAGE}
container_name: fastapi-app
restart: unless-stopped
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
ports:
- "127.0.0.1:5000:5000"
networks:
- app-network
auth-service:
build:
context: ./auth_service
container_name: auth-service
restart: unless-stopped
environment:
- API_KEY=${API_KEY}
networks:
- app-network
networks:
app-network:
driver: bridge