-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yml
51 lines (45 loc) · 1.68 KB
/
docker-compose.prod.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
version: "3.8"
services:
storage:
image: ghcr.io/merklebot/storage:main
env_file: .env.prod
networks:
bridge:
internal:
# One alias per tenant is required for custody to storage callbacks unless wildcard subdomain support is not released.
# https://github.com/moby/moby/pull/43444
aliases:
- "dev.${DOCKER_SWARM_STACK_NAME}_storage"
- "droneselfie.${DOCKER_SWARM_STACK_NAME}_storage"
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.storage.entrypoints=websecure
- traefik.http.routers.storage.rule=Host(`storage.api2.merklebot.com`) || HostRegexp(`{tenant:[\w-]+}.storage.api2.merklebot.com`)
- traefik.http.routers.storage.tls=true
- traefik.http.routers.storage.tls.certresolver=letsencrypt-dnschallenge
- traefik.http.routers.storage.tls.domains[0].main=storage.api2.merklebot.com
- traefik.http.routers.storage.tls.domains[0].sans=*.storage.api2.merklebot.com
- traefik.http.routers.storage.service=storage
- traefik.http.services.storage.loadbalancer.server.port=${SERVER_PORT}
# - traefik.http.middlewares.strip-storage.stripprefix.prefixes=${SERVER_ROOT_PATH}
# - traefik.http.routers.storage.middlewares=strip-storage@docker
# postgres:
# volumes:
# - postgres:/var/lib/postgresql/data
# environment:
# PGDATA: /var/lib/postgresql/data/pgdata
# networks:
# - internal
# deploy:
# placement:
# constraints:
# - node.labels.postgres == true
#volumes:
# postgres:
# external: true
networks:
internal:
external: true # externally created
bridge:
external: true