forked from maailma/kansa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (62 loc) · 1.44 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
version: '2'
# For full config, see also docker-compose.{override,prod}.yml
volumes:
client:
pgdata:
services:
nginx:
image: nginx:stable
links:
- hugo
- kansa
volumes:
- ./nginx/conf.template:/nginx.conf.template:ro
- client:/usr/share/nginx/html/client:ro
command: /bin/bash -c "envsubst '$$API_SERVER_NAME $$API_SSL_CERTIFICATE $$API_SSL_CERTIFICATE_KEY' < /nginx.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
client-build:
build: ./client
environment:
NODE_ENV: production
volumes:
- client:/usr/src/app/dist
hugo:
build: ./hugo/server
entrypoint: ./wait-for-it.sh postgres:5432 -- npm start
links:
- postgres
expose:
- "3000"
kansa:
build: ./kansa/server
entrypoint: ./wait-for-it.sh postgres:5432 -- npm start
links:
- kyyhky
- postgres
expose:
- "3000"
kyyhky:
build: ./kyyhky
entrypoint: ./wait-for-it.sh redis:6379 -- npm start
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
links:
- redis
expose:
- "3000"
redis:
image: redis:3.2
expose:
- "6379"
postgres:
image: postgres:9.5
environment:
PGDATA: /pgdata
POSTGRES_DB: api
POSTGRES_USER: admin
expose:
- "5432"
volumes:
- pgdata:/pgdata
- ./postgres/damm:/damm:ro
- ./postgres/init:/docker-entrypoint-initdb.d:ro