-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
41 lines (41 loc) · 918 Bytes
/
Copy pathcompose.yml
File metadata and controls
41 lines (41 loc) · 918 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
36
37
38
39
40
41
services:
backend:
build:
dockerfile: deployment/docker/local/Dockerfile
ports:
- 8000:80
environment:
- PG_USER=pguser
- PG_PASSWORD=password
- PG_DOMAIN=db
- PG_DATABASE=companion
- PG_PORT=5432
volumes:
- ./src:/code/app
- ./api_logs:/tmp
migrations:
build:
dockerfile: deployment/docker/local/Dockerfile
environment:
- PG_USER=pguser
- PG_PASSWORD=password
- PG_DOMAIN=db
- PG_DATABASE=companion
- PG_PORT=5432
entrypoint:
- /usr/local/bin/python
- migrations_handler.py
volumes:
- ./src:/code/app
- ./api_logs:/tmp
db:
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=companion
- POSTGRES_USER=pguser
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- 5432:5432