-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.pizza.yml
78 lines (68 loc) · 1.79 KB
/
docker-compose.pizza.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
version: "3.8"
# Pizzas use [caddy-gen](https://hub.docker.com/r/wemakeservices/caddy-gen) as a reverse proxy
# the "virtual.*" labels configure mapping rules
services:
postgres:
volumes:
- postgres_data:/var/lib/postgresql/data
labels:
virtual.host: postgres.${ROOT_DOMAIN}
virtual.port: 5432
virtual.tls-email: ${TLS_EMAIL}
hasura:
labels:
virtual.port: 8080
virtual.tls-email: ${TLS_EMAIL}
hasura-proxy:
labels:
virtual.host: hasura.${ROOT_DOMAIN}
virtual.port: ${HASURA_PROXY_PORT}
virtual.tls-email: ${TLS_EMAIL}
api:
build:
target: production
volumes:
- "/api/node_modules"
- "/api/dist"
labels:
virtual.host: api.${ROOT_DOMAIN}
virtual.port: ${API_PORT}
virtual.tls-email: ${TLS_EMAIL}
environment:
NODE_ENV: "pizza"
sharedb:
labels:
virtual.host: sharedb.${ROOT_DOMAIN}
virtual.port: 8000
virtual.tls-email: ${TLS_EMAIL}
editor:
image: pierrezemb/gostatic
volumes:
- ./editor.planx.uk/build:/srv/http
entrypoint: "/goStatic -fallback /index.html"
labels:
virtual.host: ${ROOT_DOMAIN}
virtual.port: 8043
virtual.tls-email: ${TLS_EMAIL}
storybook:
image: pierrezemb/gostatic
volumes:
- ./editor.planx.uk/build/storybook:/srv/http
entrypoint: "/goStatic -port 8044 -fallback /index.html"
labels:
virtual.host: storybook.${ROOT_DOMAIN}
virtual.port: 8044
virtual.tls-email: ${TLS_EMAIL}
caddy-gen:
image: wemakeservices/caddy-gen:latest
restart: always
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- caddy_data:/data/caddy # to back up certificates
ports:
- 80:80
- 443:443
volumes:
postgres_data:
caddy_data:
caddy_config: