-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (63 loc) · 1.52 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
60
61
62
63
64
65
66
67
68
version: '3.8'
services:
josix:
build: .
container_name: josix
restart: always
env_file: .env.dev
volumes:
- ./configs/config.json:/app/configs/config.json
- ./data/logs:/app/logs
- ./data/askip.json:/app/askip.json
- ./data/backup.sql:/app/database/backup.sql
- ./data/daily_backup.sql:/app/database/daily_backup.sql
- ./data/daily_backup.sql.old:/app/database/daily_backup.sql.old
depends_on:
db:
condition: service_healthy
networks:
BridgeServer:
ipv4_address: ${JOSIX_IP}
adminer:
image: adminer:latest
container_name: josix_adminer
restart: always
environment:
ADMINER_DESIGN: 'hydra'
ADMINER_DEFAULT_SERVER: 'postgresql'
ports:
- 8080:8080
depends_on:
- db
networks:
BridgeServer:
ipv4_address: ${ADMINER_IP}
db:
image: postgres:latest
container_name: josix_db
restart: always
env_file: .env.db
volumes:
- ./initialization-scripts:/docker-entrypoint-initdb.d/
- ./pg_data:/var/lib/postgresql/data
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U root -d nix'"]
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
networks:
BridgeServer:
ipv4_address: ${DB_IP}
networks:
BridgeServer:
name: BridgeServer
driver: ${DRIVER}
driver_opts:
parent: ${PARENT}
ipam:
config:
- subnet: "${SUBNET}"
gateway: "${GATEWAY}"