-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
83 lines (78 loc) · 2.22 KB
/
docker-compose.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3"
services:
backend:
image: ghcr.io/cliqteam/when2meet-backend:local
build:
context: .
dockerfile: ./docker/backend/Dockerfile.local
restart: unless-stopped
command: /dev.sh
depends_on:
- postgres
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=PathPrefix(`/api`) || PathPrefix(`/static`) || PathPrefix(`/admin`)"
- "traefik.http.routers.backend.entrypoints=web"
- "traefik.http.middlewares.xForwardedProto.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.backend.middlewares=xForwardedProto"
volumes:
- ./backend:/app
environment:
- SECRET_KEY=${SECRET_KEY}
- RECAPTCHA_SECRET_KEY=${RECAPTCHA_SECRET_KEY}
- RECAPTCHA_SITE_KEY=${RECAPTCHA_SITE_KEY}
- SQL_USER=${SQL_USER}
- SQL_PASSWORD=${SQL_PASSWORD}
- SQL_DATABASE=${SQL_DATABASE}
- SQL_HOST=${SQL_HOST}
- SQL_PORT=${SQL_PORT}
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_PORT=${EMAIL_PORT}
- EMAIL_USE_TLS=${EMAIL_USE_TLS}
frontend:
image: ghcr.io/cliqteam/when2meet-frontend:local
build:
context: .
dockerfile: ./docker/frontend/Dockerfile.local
command: /dev.sh
restart: unless-stopped
tty: true
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=PathPrefix(`/`)"
- "traefik.http.routers.frontend.entrypoints=web"
volumes:
- ./frontend:/app
- /app/node_modules
ingress:
image: traefik:2.5
command:
- "--api.insecure=true"
- "--providers.docker"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:8000"
depends_on:
- backend
- frontend
ports:
- "8000:8000"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
postgres:
image: postgres:13-alpine
restart: unless-stopped
logging:
driver: none
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${SQL_USER}
- POSTGRES_PASSWORD=${SQL_PASSWORD}
- POSTGRES_DB=${SQL_DATABASE}
mailhog:
image: mailhog/mailhog:latest
ports:
- "8025:8025"
volumes:
postgres-data: