-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (82 loc) · 2.5 KB
/
docker-compose.yml
File metadata and controls
88 lines (82 loc) · 2.5 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
services:
foton_cloudflared:
image: cloudflare/cloudflared:latest
container_name: fotoncloudflared
restart: unless-stopped
command: tunnel --no-autoupdate run --token ${TUNNEL_TOKEN}
networks:
- foton
foton_postgres:
container_name: fotonpostgres
image: postgres:15
ports:
- "${POSTGRES_PORT}:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- ${DATA_DIR}/postgres/data:/var/lib/postgresql/data
- ${DATA_DIR}/postgres/init:/docker-entrypoint-initdb.d
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
interval: 1s
timeout: 2s
retries: 20
deploy:
resources:
limits:
cpus: '1.0'
memory: 2G
networks:
- foton
foton_redmine:
container_name: fotonredmine
image: redmine:6.0
depends_on:
foton_postgres:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "${REDMINE_WEB_PORT}:3000"
environment:
REDMINE_DB_DATABASE: ${REDMINE_DB_NAME}
REDMINE_DB_POSTGRES: ${REDMINE_DB_HOST}
REDMINE_DB_USERNAME: ${REDMINE_DB_USER}
REDMINE_DB_PASSWORD: ${REDMINE_DB_PASSWORD}
REDMINE_DB_PORT: ${REDMINE_DB_PORT}
REDMINE_SECRET_KEY_BASE: ${REDMINE_SECRET_KEY_BASE}
# Variáveis SMTP para serem usadas pelo configuration.yml
REDMINE_SMTP_DOMAIN: ${REDMINE_SMTP_DOMAIN}
REDMINE_SMTP_USER: ${REDMINE_SMTP_USER}
REDMINE_SMTP_PASSWORD: ${REDMINE_SMTP_PASSWORD}
volumes:
- ${DATA_DIR}/redmine/files:/usr/src/redmine/files
- ${DATA_DIR}/redmine/plugins:/usr/src/redmine/plugins
- ${DATA_DIR}/redmine/themes:/usr/src/redmine/public/themes
- ${DATA_DIR}/redmine/config/configuration.yml:/usr/src/redmine/config/configuration.yml
- ${DATA_DIR}/redmine/config/master.key:/usr/src/redmine/config/master.key
- ${DATA_DIR}/redmine/config/credentials.yml.enc:/usr/src/redmine/config/credentials.yml.enc
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/login"]
interval: 15s
timeout: 10s
retries: 5
start_period: 45s
restart: unless-stopped
deploy:
resources:
limits:
cpus: '1.0'
memory: 2G
networks:
- foton
volumes:
redmine_postgres_data:
redmine_data:
networks:
foton:
driver: bridge
name: foton_network