-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
38 lines (36 loc) · 903 Bytes
/
docker-compose.yaml
File metadata and controls
38 lines (36 loc) · 903 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
version: "3"
services:
conditional:
build: .
container_name: conditional
depends_on:
- conditional-postgres
ports:
- "127.0.0.1:8080:8080"
volumes:
- ./migrations:/opt/conditional/migrations
develop:
watch:
- action: sync+restart
path: ./conditional
target: /opt/conditional/conditional
ignore:
- __pycache__
- action: sync+restart
path: ./config.py
target: /opt/conditional/config.py
- action: rebuild
path: ./frontend
conditional-postgres:
image: docker.io/postgres
container_name: conditional-postgres
environment:
POSTGRES_PASSWORD: fancypantspassword
POSTGRES_USER: conditional
POSTGRES_DATABASE: conditional
ports:
- "127.0.0.1:5432:5432"
volumes:
- pgdata:/var/lib/postgresql
volumes:
pgdata: