-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
68 lines (64 loc) · 1.61 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
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
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_judgements_public_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.10
ports:
- "5432:5432"
environment:
POSTGRES_DB: ds_judgements_public_ui
POSTGRES_USER: postgres
POSTGRES_PASSWORD: admin
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
PGDATABASE: ds_judgements_public_ui
PGUSER: postgres
PGPASSWORD: admin
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- ./database_backups:/backups:z
docs:
image: ds_judgements_public_ui_local_docs
container_name: ds_judgements_public_ui_local_docs
build:
context: .
dockerfile: ./compose/local/docs/Dockerfile
env_file:
- ./.env
volumes:
- ./docs:/docs:z
- ./config:/app/config:z
- ./ds_judgements_public_ui:/app/ds_judgements_public_ui:z
ports:
- "7000:7000"
command: /start-docs
e2e_tests:
build:
context: ./e2e_tests
dockerfile: "../compose/local/e2e_tests/Dockerfile"
profiles: [e2e_tests]
volumes:
- "./e2e_tests:/app:z"
networks:
default:
name: caselaw
external: true