-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
51 lines (49 loc) · 978 Bytes
/
compose.yml
File metadata and controls
51 lines (49 loc) · 978 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
45
46
47
48
49
50
51
services:
api:
build: ./api
image: maplinedraw_api
restart: always
networks:
- backend
environment:
- API_ROOT_PATH=/api
- API_ALLOWED_ORIGIN="https://maplinedraw.com"
volumes:
- ./api/projects:/app/projects:rw
web:
build: ./web
image: maplinedraw_web
restart: always
networks:
- backend
nginx:
image: jonasal/nginx-certbot:latest
restart: always
environment:
- CERTBOT_EMAIL=${CERTBOT_EMAIL}
- STAGING=0
- DHPARAM_SIZE=2048
- RSA_KEY_SIZE=2048
- ELLIPTIC_CURVE=secp256r1
- USE_ECDSA=1
- RENEWAL_INTERVAL=8d
- DEBUG=0
ports:
- 80:80
- 443:443
networks:
- frontend
- backend
volumes:
- letsencrypt:/etc/letsencrypt
- ./nginx:/etc/nginx/user_conf.d:ro
depends_on:
- "api"
- "web"
networks:
backend:
frontend:
volumes:
letsencrypt:
external: true
name: letsencrypt