-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.21 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
volumes:
dev_hip_data: {}
dev_media: {}
dev_node_modules: {}
dev_venv: {}
dev_cache: {}
services:
db:
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: hip
image: postgres:15-alpine
ports:
- "5433:5432"
volumes:
- dev_hip_data:/var/lib/postgresql/data
django:
environment:
DJANGO_SETTINGS_MODULE: hip.settings.dev
DATABASE_URL: postgres://postgres@db:5432/hip
PGHOST: db
PGPORT: 5432
PGUSER: postgres
PGDATABASE: hip
ENVIRONMENT: local
DJANGO_SECRET_KEY: dummy
DOMAIN: localhost
SESSION_COOKIE_SECURE: "False"
DJANGO_SECURE_SSL_REDIRECT: "False"
AWS_PROFILE: philly-hip
build:
context: .
dockerfile: Dockerfile
target: dev
args:
USER_UID: ${USER_UID:-1000}
USER_GID: ${USER_GID:-1000}
command: [ "sleep", "infinity" ]
links:
- db:db
ports:
- "9040:8000"
- "9041:3000"
volumes:
- ~/.ssh:/home/appuser/.ssh:delegated
- ~/.aws:/home/appuser/.aws/
- .:/code/
- dev_media:/code/media
- dev_node_modules:/code/node_modules
- dev_venv:/code/venv
- dev_cache:/home/appuser/.cache/