-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.24 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
59
version: '3.1'
# Define a network, which allows containers to communicate
# with each other, by using their container name as a hostname
networks:
app-network:
driver: bridge
services:
client:
container_name: rhidium-template
restart: unless-stopped
build:
context: .
dockerfile: ./Dockerfile
args:
- CI=true # Skips husky in build stage
depends_on:
- db
env_file: .env
environment:
- NODE_ENV=production
- CI=true
volumes:
- ./data:/app/data
- ./logs:/app/logs
- ./config/config.json:/app/config/config.json
- ./config/config.example.json:/app/config/config.example.json
ports:
- 9000:9000
networks:
- app-network
db:
image: postgres
restart: unless-stopped
shm_size: 128mb
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
networks:
- app-network
volumes:
- pg-data:/var/lib/postgresql/data
# Web interface for database management
# adminer:
# image: adminer
# restart: always
# ports:
# - 8080:8080
volumes:
pg-data: