-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (38 loc) · 999 Bytes
/
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
services:
django:
platform: linux/amd64
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
depends_on:
- postgres
volumes:
- .:/app:z
init: true
environment:
DATABASE_URL: "postgres://postgres:admin@postgres:5432/ds_judgments_editor_ui"
DJANGO_SETTINGS_MODULE: "config.settings.local"
SECRET_KEY: local_dev_secret_key
SECURE_SSL_REDIRECT: "false"
env_file:
- ./.env
ports:
- "3000:3000"
# do nothing forever - exec commands elsewhere
command: tail -f /dev/null
postgres:
image: postgres:15.8
ports:
- "5432:5432"
environment:
POSTGRES_DB: ds_judgments_editor_ui
POSTGRES_USER: postgres
POSTGRES_PASSWORD: admin
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
PGDATABASE: ds_judgments_editor_ui
PGUSER: postgres
PGPASSWORD: admin
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- ./database_backups:/backups:z