This repository has been archived by the owner on May 11, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
97 lines (89 loc) · 2.59 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
version: "3"
services:
database:
image: postgres:10-alpine # https://hub.docker.com/_/postgres/
env_file:
- etc/env/postgres.env
volumes:
- ./etc/postgres/initdb.d:/docker-entrypoint-initdb.d
- pgdata:/var/lib/postgresql/data
click-migration:
image: kamilsk/click:1.x # https://hub.docker.com/r/kamilsk/click/
command: [ "migrate", "up" ]
depends_on:
- database
env_file:
- etc/env/click.env
restart: on-failure
click:
image: kamilsk/click:1.x
command: [ "run", "--with-profiler", "--with-monitoring" ]
depends_on:
- click-migration
env_file:
- etc/env/click.env
forma-migration:
image: kamilsk/form-api:1.x # https://hub.docker.com/r/kamilsk/form-api/
command: [ "migrate", "up" ]
depends_on:
- database
env_file:
- etc/env/forma.env
restart: on-failure
forma:
image: kamilsk/form-api:1.x
command: [ "run", "--with-profiler", "--with-monitoring" ]
depends_on:
- forma-migration
env_file:
- etc/env/forma.env
hugo:
image: kamilsk/hugo:latest # https://hub.docker.com/r/kamilsk/hugo/
env_file:
- etc/env/hugo.env
volumes:
- ./site:/usr/share/site
passport-migration:
image: kamilsk/passport:1.x # https://hub.docker.com/r/kamilsk/passport/
command: [ "migrate", "up" ]
depends_on:
- database
env_file:
- etc/env/passport.env
restart: on-failure
passport:
image: kamilsk/passport:1.x
command: [ "run", "--with-profiling", "--with-monitoring" ]
depends_on:
- passport-migration
env_file:
- etc/env/passport.env
volumes:
- static_passport:/usr/share/passport
server:
image: kamilsk/nginx:1.x # https://hub.docker.com/r/kamilsk/nginx/
depends_on:
- click
- forma
- hugo
- passport
entrypoint: |
/bin/bash -c "echo $$BASIC_USER:`(echo $$BASIC_PASS | openssl passwd -crypt -stdin -noverify)` >> /etc/nginx/.htpasswd \
&& /entrypoint.sh 127.0.0.1.xip.io \
click.127.0.0.1.xip.io \
forma.127.0.0.1.xip.io \
passport.127.0.0.1.xip.io"
env_file:
- etc/env/balancer.env
ports:
- ${HUGS_HTTP_PORT}:80
- ${HUGS_HTTPS_PORT}:443
volumes:
- ./etc/nginx/ssl:/etc/nginx/ssl:ro
- ./etc/nginx/conf.d:/etc/nginx/sites-available:ro
- letsencrypt:/etc/letsencrypt
- static_passport:/usr/share/nginx/html/assets
volumes:
pgdata: { driver: local }
letsencrypt: { driver: local }
static_passport: { driver: local }