-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
40 lines (34 loc) · 1.08 KB
/
docker-compose.prod.yml
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
version: '3'
services:
fa-nginx:
build: ./docker/nginx
ports:
- '80:80'
- '443:443'
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
extra_hosts:
- 'host.docker.internal:host-gateway'
financial-advisor-nestjs:
image: 'hectorgomezv1/financial-advisor-nestjs:${IMAGE_RELEASE}'
ports:
- '5100:5100'
volumes:
- fa_logs:/var/log
# README: https://www.programonaut.com/setup-ssl-with-docker-nginx-and-lets-encrypt/
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --force-renewal --email ${CERT_EMAIL} -d ${CERT_DOMAIN} --agree-tos
fa-auth-service:
image: 'hectorgomezv1/auth-service:${FA_AUTH_SERVICE_IMAGE_RELEASE}'
fa-frontend:
image: 'hectorgomezv1/fa-frontend:${FA_FRONTEND_IMAGE_RELEASE}'
fa-mongo:
command: [--auth]
fa-redis:
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}