-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (65 loc) · 1.54 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
version: "2.1"
networks:
clstrnwrk:
driver: bridge
volumes:
letsencrypt:
# external:
# name: issued_certs_stored_in_host
frontend_logs:
httpd_logs:
nginx_logs:
services:
# These are the root images for all the services
#
# Overridden `entrypoint` and `depends_on` entries allows to build dependencies chain with simple `docker-compose up`
alpine-s6:
build: ./alpine-s6
image: makovich/alpine-s6:0.5
entrypoint: /bin/true
alpine-s6-serf:
build: ./alpine-s6-serf
image: makovich/alpine-s6-serf:0.5
entrypoint: /bin/true
depends_on:
- alpine-s6
############################################
frontend:
container_name: ${FRONTEND_NAME:-fe.serf}
build: ./alpine-s6-serf-nghttpx-acmesh
depends_on:
- alpine-s6-serf
volumes:
- letsencrypt:/var/acme.sh
- frontend_logs:/var/log
networks:
- clstrnwrk
ports:
- "80:80"
- "443:443"
- "3000:3000"
environment:
S6_LOGGING: ${S6_LOGGING:-1}
restart: always
httpd:
build: ./alpine-s6-serf-httpd
depends_on:
- alpine-s6-serf
volumes:
- httpd_logs:/var/log
networks:
- clstrnwrk
environment:
S6_LOGGING: ${S6_LOGGING:-1}
FRONTEND_NAME: ${FRONTEND_NAME:-fe.serf}
nginx:
build: ./alpine-s6-serf-nginx
depends_on:
- alpine-s6-serf
volumes:
- nginx_logs:/var/log
networks:
- clstrnwrk
environment:
S6_LOGGING: ${S6_LOGGING:-1}
FRONTEND_NAME: ${FRONTEND_NAME:-fe.serf}