-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·42 lines (38 loc) · 1020 Bytes
/
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
version: '3.6'
# prepare named_volume for persistance, to not lose everything on exit/restart
volumes:
templates:
driver: local
datas:
driver: local
services:
wishitch:
image: "dbuteau/wishitch:latest"
build:
context: .
container_name: wishitch
restart: always
ports:
- "8000:8000"
environment:
HOSTNAME: "'mes-envies.example.com'"
ADMIN_LOGIN: monLogin
ADMIN_EMAIL: [email protected]
# Password loaded from .env in my case
ADMIN_PASSWORD: ${WISHITCH_PASSWORD}
volumes: # persist needed files
- templates:/usr/src/app/wishitch/templates
- datas:/usr/src/app/datas/
# OPTIONNAL ONLY FOR TRAEFIK
labels:
traefik.enable: 'true'
traefik.backend: wishitch
traefik.port: 8000
traefik.frontend.rule: "Host:mes-envies.example.com"
networks:
- proxy
networks: # bind to traefik network
proxy:
external:
name: proxy
# -- END OF TRAEFIK CONFIG --