-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 1.18 KB
/
docker-compose.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
41
42
43
44
45
46
47
48
services:
backend:
image: ghcr.io/ssciwr/predictcr_backend:${PREDICTCR_DOCKER_IMAGE_TAG:-latest}
build: ./backend
volumes:
- ${PREDICTCR_DATA:-./docker_volume}:/predictcr_data
environment:
- JWT_SECRET_KEY=${PREDICTCR_JWT_SECRET_KEY:-}
networks:
- predictcr-network
logging:
driver: "local"
options:
max-size: 20m
max-file: 25
frontend:
image: ghcr.io/ssciwr/predictcr_frontend:${PREDICTCR_DOCKER_IMAGE_TAG:-latest}
build: ./frontend
ports:
- 80:80
- 443:443
volumes:
- ${PREDICTCR_SSL_CERT:-./cert.pem}:/predictcr_ssl_cert.pem
- ${PREDICTCR_SSL_KEY:-./key.pem}:/predictcr_ssl_key.pem
# to allow certbot to renew SSL certificates:
- /var/www/certbot:/var/www/certbot:ro
networks:
- predictcr-network
logging:
driver: "local"
options:
max-size: 20m
max-file: 25
email:
image: "boky/postfix"
environment:
- ALLOW_EMPTY_SENDER_DOMAINS="true"
networks:
- predictcr-network
logging:
driver: "local"
options:
max-size: 20m
max-file: 3
networks:
predictcr-network:
name: predictcr