-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (55 loc) · 1.07 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
49
50
51
52
53
54
55
56
57
version: '3.8'
services:
frontend:
build:
context: .
dockerfile: Dockerfile
ports:
- "1000:80"
- "1443:443"
env_file:
- ./.env
volumes:
- /etc/letsencrypt/live/mybricklog.com:/etc/nginx/ssl:ro
environment:
- NODE_ENV=production
- REACT_APP_API_URL=${REACT_APP_API_URL}
depends_on:
- backend
networks:
- app-network
- shared_public_net
deploy:
resources:
limits:
memory: 512m
cpus: "1.0"
reservations:
memory: 256m
cpus: "0.5"
restart: unless-stopped
backend:
build:
context: ./lego-api
dockerfile: Dockerfile
ports:
- "1080:80"
env_file:
- ./.env.production
networks:
- app-network
- shared_public_net
deploy:
resources:
limits:
memory: 256m
cpus: "0.5"
reservations:
memory: 128m
cpus: "0.25"
restart: unless-stopped
networks:
app-network:
driver: bridge
shared_public_net:
external: true