forked from roymiloh/kikar-hamedina
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 917 Bytes
/
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
version: '3'
services:
web:
depends_on:
- db
build: .
expose:
- "8000"
ports:
- "8000:8000"
links:
- db
db:
image: postgres:9.6
restart: always
volumes:
- ./postgres/init:/docker-entrypoint-initdb.d
# - kikar_postgres_data:/var/lib/postgresql/data
- ./postgres/data/postgresql.conf:/var/lib/postgresql/data/postgresql.conf
environment:
# - PGDATA=/var/lib/postgresql/data/pgdata
- PGDATA=/tmp
#- POSTGRES_PASSWORD=password
start-dependencies:
image: "python:3.6"
depends_on:
- web
- db
links:
- db
- web
command: >
/bin/bash -c "
until $$(curl --output /dev/null --silent --head --fail http://web:8000); do
echo \"BUILDING...\"
sleep 5
done; echo \"BUILD COMPLETE - visit http://localhost:8000 in a browser\";"
volumes:
kikar_postgres_data: