-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.26 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.7'
services:
redmine:
ports:
- '8089:3000'
image: 'redmine:5.1.1-alpine'
container_name: 'redmine-web'
depends_on:
- db-postgres
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8089"]
# interval: 1m30s
# timeout: 10s
# retries: 3
# start_period: 40s
restart: unless-stopped
environment:
REDMINE_DB_POSTGRES: db-postgres
REDMINE_DB_PORT: 5432
REDMINE_DB_DATABASE: redmine
REDMINE_DB_USERNAME: redmine-usr
REDMINE_DB_PASSWORD: redmine-pswd
networks:
- redmine-network
stop_grace_period: 30s
volumes:
- redmine-data:/usr/src/redmine/files
db-postgres:
environment:
POSTGRES_DB: redmine
POSTGRES_USER: redmine-usr
POSTGRES_PASSWORD: redmine-pswd
container_name: 'redmine-db'
image: 'postgres:16-alpine'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 20s
timeout: 20s
retries: 5
restart: unless-stopped
ports:
- '5432:5432'
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- redmine-network
stop_grace_period: 30s
volumes:
postgres-data:
redmine-data:
networks:
redmine-network:
driver: bridge