-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (56 loc) · 1.71 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "3"
services:
db:
image: postgres:12
environment:
POSTGRES_DB: lako
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
volumes:
- postgres_data:/var/lib/postgresql
labels:
- traefik.enable=false
mailhog:
image: mailhog/mailhog:v1.0.0
labels:
- traefik.http.routers.mailhog.rule=Host(`mailhog.bbox.localdev`)
- traefik.http.routers.mailhog.entrypoints=http
- traefik.http.routers.mailhog.middlewares=redirect@file
- traefik.http.routers.mailhog-secured.rule=Host(`mailhog.bbox.localdev`)
- traefik.http.routers.mailhog-secured.entrypoints=https
- traefik.http.routers.mailhog-secured.tls=true
- traefik.http.services.mailhog-secured.loadbalancer.server.port=8025
app:
build:
context: .
dockerfile: Dockerfile-local
environment:
RUST_LOG: trace
DATABASE_URL: postgres://postgres:secret@db/lako
JWT_SECRET_KEY: "_uoE-5<>/x['DS.?XsHnG9ZZY6&^XNR("
SMTP_USERNAME: "hamzah"
SMTP_PASSWORD: "secret"
SMTP_SERVER: "mailhog"
SMTP_PORT: "1025"
depends_on:
- db
volumes:
- ./:/app
- target_cache:/app/target
- cargo_cache:/usr/local/cargo/registry
labels:
- traefik.http.routers.lako.rule=Host(`lako.bbox.localdev`)
- traefik.http.routers.lako.entrypoints=http
- traefik.http.routers.lako.middlewares=redirect@file
- traefik.http.routers.lako-secured.rule=Host(`lako.bbox.localdev`)
- traefik.http.routers.lako-secured.entrypoints=https
- traefik.http.routers.lako-secured.tls=true
- traefik.port=8000
volumes:
postgres_data:
cargo_cache:
target_cache:
networks:
default:
external:
name: dock-net