-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (55 loc) · 1.09 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
58
version: "3.9"
services:
pg:
container_name: pg
image: postgres:alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
ports:
- $DB_PORT:$DB_PORT
environment:
- POSTGRES_USER=$DB_USER
- POSTGRES_PASSWORD=$DB_PASS
- POSTGRES_DB=$DB_NAME
restart: unless-stopped
deploy:
resources:
limits:
memory: 512M
command: postgres -c listen_addresses='*'
rd:
container_name: rd
image: redis:alpine
volumes:
- ./data/redis:/data
ports:
- $RD_PORT:$RD_PORT
deploy:
resources:
limits:
memory: 64M
command: redis-server --appendonly yes
web:
container_name: web
image: mb/dashboard
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/mca-dashboard
- /app/node_modules
ports:
- $WEB_PORT:$WEB_PORT
- $API_PORT:$API_PORT
env_file: .env
restart: on-failure
depends_on:
- pg
- rd
deploy:
resources:
limits:
memory: 4096M
networks:
dashboard:
driver: bridge