-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.21 KB
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
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile-dev
restart: unless-stopped
entrypoint: sleep infinity
environment:
- POLLS_DEBUG=1
- POLLS_HOST=0.0.0.0
- POLLS_PORT=5000
- POLLS_DB_HOST=postgres
- POLLS_DB_USER=polls
- POLLS_DB_PASSWORD=password
- POLLS_DB_NAME=polls
ports:
- 5000
volumes:
- ./:/code/
postgres:
image: postgres:9.6
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=polls
- POSTGRES_DB=polls
volumes:
- ./data/:/var/lib/postgresql/data
wait_postgres:
image: "waisbrot/wait"
environment:
TARGETS: postgres:5432
migrate:
build: migrate/
entrypoint: sleep 10000d
volumes:
- ./migrate/:/migrations/
environment:
- DB_HOST=postgres
- DB_USER=polls
- DB_PASSWORD=password
- DB_NAME=polls
postgres-test:
image: postgres:9.6
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=polls-test
- POSTGRES_DB=polls-test
volumes:
- ./data-test/:/var/lib/postgresql/data
networks:
default:
driver: bridge