-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
61 lines (60 loc) · 1.54 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
services:
hoyodecrimen:
container_name: hoyodecrimen
restart: unless-stopped
deploy:
replicas: 1
restart_policy:
condition: any
environment:
MODULE_NAME: "${MODULE_NAME}"
LOG_LEVEL: "${LOG_LEVEL}"
PORT: "${PORT}"
SQLALCHEMY_DATABASE_URI: "${SQLALCHEMY_DATABASE_URI}"
#PRODUCTION: "True"
#SENTRY_DSN: "${SENTRY_DNS}"
CACHE_SECRET: "${CACHE_SECRET}"
PUID: 1000
PGID: 1000
image: diegovalle/hoyodecrimen
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
interval: 180s
timeout: 30s
retries: 7
user: "1000:1000"
#volumes:
# - /hoyodecrimen/wsgi/static/.webassets-cache:/app/static/.webassets-cache
# - /hoyodecrimen/wsgi/static/gen:/app/static/gen
#deploy:
# resources:
# limits:
#cpus: '1'
#memory: 256M
ports:
- '8080:8080'
depends_on:
db:
condition: service_healthy
env_file:
- .env
db:
container_name: hoyodecrimen-postgis
restart: unless-stopped
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
HOYODECRIMEN_BACKUP_PASSWORD: "${HOYODECRIMEN_BACKUP_PASSWORD}"
HOYODECRIMEN_PASSWORD: "${HOYODECRIMEN_PASSWORD}"
image: diegovalle/hoyodecrimen-postgis
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 5s
retries: 5
networks:
- default
volumes:
- /pgdata_hy:/var/lib/postgresql/data
ports:
- 5405:5432
version: '3'