-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.01 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
54
version: '3.2'
services:
start_services:
image: jwilder/dockerize
command: >
-wait tcp://db:5432 -timeout 30s
-wait tcp://redis:6379 -timeout 30s
depends_on:
- db
- redis
start_app:
image: jwilder/dockerize
command: >
-wait tcp://laalaa:8000 --timeout 60s
depends_on:
- laalaa
# services
db:
image: circleci/postgres:9.4-alpine-postgis
ports:
- target: 5432
published: 5432
protocol: tcp
mode: host
environment:
POSTGRES_USER: postgres
POSTGRES_DB: laalaa
redis:
image: redis:4-alpine
ports:
- target: 6379
published: 6379
protocol: tcp
mode: host
# application
laalaa:
build: .
ports:
- target: 8000
published: 8000
protocol: tcp
mode: host
environment:
DB_USERNAME: postgres
DB_PASSWORD:
DB_HOST: db
DB_PORT: 5432
DB_NAME: laalaa
HOST_IP: redis
CELERY_BROKER_URL: redis://redis:6379