forked from benadida/helios-server
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
42 lines (42 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
version: '3'
services:
db:
image: postgres
env_file:
- .env
ports:
- "6432:5432"
volumes:
- ~/docker-volumes/heliosdb/pgdata:/var/lib/postgresql/data
- ./docker/db/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- helios-network
helios:
build:
dockerfile: ./docker/Dockerfile
context: ./
command: python manage.py runserver 0.0.0.0:8000
depends_on:
- db
env_file:
- .env
environment:
- USER_ID=1000
- GROUP_ID=1000
ports:
- "80:80"
- "443:443"
- "8000:8000"
networks:
- helios-network
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
stop_grace_period: "${DOCKER_STOP_GRACE_PERIOD:-3s}"
volumes:
- ./.:/var/www/helios-server
- ~/docker-volumes/heliosapp/apache-logs:/var/log/apache2
- ~/docker-volumes/heliosapp/celery-logs:/var/log/celery
- ~/docker-volumes/heliosapp/redis-logs:/var/log/redis
- ~/docker-volumes/heliosapp/supervisor-logs:/var/log/supervisor
networks:
helios-network:
driver: bridge