forked from LaunchKit/LaunchKit
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
119 lines (112 loc) · 2.61 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '2.1'
volumes:
db-volume:
driver: local
gae-storage:
driver: local
services:
backend:
build:
context: .
dockerfile: docker/Dockerfile.backend
restart: unless-stopped
environment:
PORT: 9101
POSTGRES_HOST: postgres
POSTGRES_NAME: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
REDIS_URL: redis://redis:6379/0
SECRET_KEY: CYtDmKetk7QbsCWgSyLWIRo1V57mGXsP
C_FORCE_ROOT: "true"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
gae:
condition: service_started
ports:
- 9101:9101
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:9101/v1/debug/health_check"]
interval: 10s
timeout: 15s
retries: 6
gae:
build:
context: .
dockerfile: docker/Dockerfile.gae
restart: unless-stopped
environment:
SERVER_SOFTWARE: Dev
volumes:
- gae-storage:/usr/src/app/.dev_gae_storage
ports:
- 9102:9102
- 9104:9104
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:9102"]
interval: 10s
timeout: 15s
retries: 6
reviews:
build:
context: .
dockerfile: docker/Dockerfile.reviews
restart: unless-stopped
environment:
PORT: 9101
POSTGRES_HOST: postgres
POSTGRES_NAME: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
REDIS_URL: redis://redis:6379/0
SECRET_KEY: CYtDmKetk7QbsCWgSyLWIRo1V57mGXsP
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
skit:
build:
context: .
dockerfile: docker/Dockerfile.skit
restart: unless-stopped
environment:
API_HOST: http://backend:9101/
DEBUG: 'true'
PORT: 9100
depends_on:
- backend
ports:
- 9100:9100
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:9100"]
interval: 10s
timeout: 15s
retries: 6
redis:
image: redis:4-alpine
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
postgres:
image: aidanlister/postgres-hstore
restart: unless-stopped
ports:
- 5432:5432
environment:
POSTGRES_NAME: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
volumes:
- db-volume:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 30s
retries: 6