-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
57 lines (52 loc) · 1.37 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
services:
backend:
image: ghcr.io/outfit-lab-tpi/backend-tpi:${IMAGE_TAG:-latest}
container_name: backend_app
# restart: unless-stopped
env_file:
- ./.env
ports:
- "8080:8080"
frontend:
image: ghcr.io/outfit-lab-tpi/frontend-tpi:${IMAGE_TAG:-latest}
container_name: frontend_app
restart: unless-stopped
nginx-proxy:
image: nginx:stable-alpine
container_name: nginx_proxy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
# Volúmenes compartidos con Certbot
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
depends_on:
- backend
- frontend
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
# El comando se ejecutará manualmente la primera vez
# y luego se puede configurar para renovar automáticamente.
command: renew
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${HOME}/.docker:/config
environment:
- DOCKER_CONFIG=/config
command: --interval 300 --cleanup
volumes:
certbot_conf:
driver: local
certbot_www:
driver: local