-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.sample.yaml
52 lines (51 loc) · 1.45 KB
/
docker-compose.sample.yaml
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
version: '3'
services:
fauxton:
image: 3apaxicom/fauxton
ports:
- 6945:8000
depends_on:
- couchdb
command:
- sh
- "-c"
- "fauxton -c http://couchdb:5984"
couchdb:
image: couchdb
container_name: couchdb
env_file: .env
ports:
- '5984:5984'
volumes:
- db_data:/opt/couchdb/data
networks:
- "public"
labels:
- "traefik.enable=true"
- "traefik.docker.network=public"
- "traefik.http.routers.notorious-backend.rule=Host(`${COUCH_SUBDOMAIN}.${DOMAIN_NAME}`)"
- "traefik.http.routers.notorious-backend.entrypoints=https"
- "traefik.http.routers.notorious-backend.tls.certresolver=myhttpchallenge"
- "traefik.http.services.notorious-backend.loadbalancer.server.port=5984"
notorious_web:
container_name: notorious_web
image: danobot/notorious:latest
ports:
- '9645:80'
networks:
- public
env_file: .env
volumes:
- .env:/usr/share/nginx/html/.env
labels:
- "traefik.enable=true"
- "traefik.docker.network=public"
- "traefik.http.routers.notorious.rule=Host(`${NOTORIOUS_SUBDOMAIN}.${DOMAIN_NAME}`)"
- "traefik.http.routers.notorious.entrypoints=https"
- "traefik.http.routers.notorious.tls.certresolver=myhttpchallenge"
volumes:
db_data:
driver: local
networks:
public:
external: true