-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
61 lines (61 loc) · 1.29 KB
/
docker-compose.dev.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
58
59
60
61
version: "3"
services:
db:
# replace username/repo:tag with your name and image details
image: ${DB_IMAGE_NAME:-tr-db:latest}
deploy:
replicas: 1
resources:
limits:
cpus: "0.1"
memory: 550M
restart_policy:
condition: on-failure
ports:
- "54321:5432"
networks:
- webnet
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
api:
# replace username/repo:tag with your name and image details
image: ${API_IMAGE_NAME:-tr-api:latest}
deploy:
replicas: 1
resources:
limits:
cpus: "0.8"
memory: 3000M
restart_policy:
condition: on-failure
ports:
- "11111:1111"
networks:
- webnet
depends_on:
- db
volumes:
- ./api:/app
front:
# replace username/repo:tag with your name and image details
image: ${FR_IMAGE_NAME:-tr-fr:latest}
deploy:
replicas: 1
resources:
limits:
cpus: "0.1"
memory: 750M
restart_policy:
condition: on-failure
ports:
- "8083:80"
networks:
- webnet
depends_on:
- api
volumes:
- ./frontend/dist:/usr/share/nginx/html:ro
command: [nginx, '-g', 'daemon off;']
networks:
webnet: