-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (31 loc) · 981 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
services:
app:
build:
context: .
ports:
- 3000
environment:
- REDIS_URL="redis://redis:6379"
restart: always
command: [ "rails", "server", "-b", "0.0.0.0" ]
networks:
- proxy
- datastore-network
volumes:
- ./db:/usr/src/app/db
labels:
- traefik.enable=true
- traefik.http.services.menfou.loadbalancer.server.port=3000
- traefik.http.routers.menfou.service=menfou@docker
- traefik.http.routers.menfou.rule=Host(`${MENFOU_DOMAIN}`)
- traefik.http.routers.menfou.entrypoints=web
- traefik.http.routers.menfou.middlewares=redirect-https
- traefik.http.routers.menfou-secured.service=menfou@docker
- traefik.http.routers.menfou-secured.entrypoints=web-secured
- traefik.http.routers.menfou-secured.tls=true
- traefik.http.routers.menfou-secured.rule=Host(`${MENFOU_DOMAIN}`)
networks:
proxy:
external: true
datastore-network:
external: true