-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 832 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 832 Bytes
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
services:
web:
image: ghcr.io/rodlukas/up-admin:latest
command: sh -c "python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/up_admin_app
env_file:
- .env
environment:
DATABASE_URL: 'postgresql://postgres:${POSTGRES_PASSWORD}@db:5432/postgres'
DEBUG: 'False'
DEPLOYED: 'True'
DJANGO_SETTINGS_MODULE: 'up.settings.local'
MANUAL_PRODUCTION: 'False'
ports:
- 8000:8000
restart: "on-failure"
depends_on:
- db
db:
build:
context: .
dockerfile: ./db/Dockerfile
image: up_admin_db
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- PGPORT=5432
restart: "on-failure"
volumes:
postgres_data: