-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
71 lines (67 loc) · 1.69 KB
/
docker-compose-dev.yaml
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
# Connects over unix sockets to databases, provides ports for IDE
services:
postgres:
image: ghcr.io/dcx7c5/ahs-postgres-dev:latest
container_name: postgres
environment:
POSTGRES_DB: "${DB_NAME:-ahs-dev}"
POSTGRES_USER: "${DB_USER:-ahs}"
POSTGRES_PASSWORD: "${DB_PASS:-ahs}"
tty: true
ports:
- "5442:5432" # only for IDE
volumes:
- postgres-data:/var/lib/postgresql/data/
- postgres-socket:/var/run/postgresql/
node:
image: ghcr.io/dcx7c5/ahs-node-dev:latest
tty: true
container_name: node
restart: unless-stopped
env_file:
- .env
volumes:
- .:/project:cached
redis:
image: ghcr.io/dcx7c5/ahs-redis-dev:latest
container_name: redis
command: redis-server /etc/redis.conf
ports:
- "6399:6379"
tty: true
volumes:
- redis-data:/var/lib/redis/
- redis-socket:/tmp/redis/
django:
build:
context: .
dockerfile: docker/django/Dockerfile
command: bash -c "python manage.py runserver 0.0.0.0:8000"
container_name: django
tty: true
ports:
- "8000:8000"
volumes:
- .:/project:cached
- postgres-socket:/var/run/postgresql/
- redis-socket:/tmp/redis/
environment:
SECRET_KEY: "${SECRET_KEY}"
DB_USER: "${DB_USER:-ahs-dev}"
DB_PASS: "${DB_PASS:-ahs}"
DB_NAME: "${DB_NAME:-ahs}"
DB_HOST: "${DB_HOST}"
DB_PORT: "${DB_PORT}"
DJANGO_SETTINGS_MODULE: 'adminpanel.settings'
DB_BACKUP_ON_SHUTDOWN: 1
DB_RESTORE_ON_START: 0
DEBUG: "${DEBUG:-False}"
depends_on:
- postgres
- redis
- node
volumes:
postgres-data:
postgres-socket:
redis-socket:
redis-data: