-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
31 lines (28 loc) · 1.04 KB
/
docker-compose.override.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
version: '3.8'
services:
postgres:
image: planning/postgres:${VERSION}
command: ["postgres", "-c", "logging_collector=on", "-c", "log_directory='/logs'"]
volumes:
- "./src/cron_start.sh:/usr/local/bin/cron_start.sh"
- "./src/postgres/crontab:/etc/cron.d/custom"
- "./src/postgres/dump_db.sh:/usr/local/bin/dump_db.sh"
- "./data/postgres/dumps:/dumps"
- "./data/postgres/logs:/logs"
restart: always
django:
image: planning/django:${VERSION}
volumes:
- "./src/cron_start_django.sh:/usr/local/bin/cron_start.sh"
- "./src/django/crontab:/etc/cron.d/custom"
- "./src/django/logrotate:/etc/logrotate.d/custom"
- "./data/django/logs:/logs"
restart: always
nginx:
image: planning/nginx:${VERSION}
volumes:
- "./src/cron_start.sh:/docker-entrypoint.d/cron_start.sh"
- "./src/nginx/crontab:/etc/cron.d/custom"
- "./src/nginx/logrotate:/etc/logrotate.d/custom"
- "./src/nginx/nginx.override.logs.conf:/etc/nginx/nginx.override.logs.conf"
restart: always