-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1.57 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
services:
db:
image: postgres:15.3
restart: always
ports:
- 5433:5432
volumes:
- ./DATA:/var/lib/postgresql/data/
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
backend:
depends_on: [db]
image: veetik/tasks-backend:prod
restart: always
env_file:
- .env.prod
labels:
- "traefik.enable=true"
- "traefik.http.routers.tasks-backend.entrypoints=https"
- "traefik.http.routers.tasks-backend.tls=true"
- "traefik.http.routers.tasks-backend.service=tasks-backend"
- "traefik.http.routers.tasks-backend.rule=Host(`tasks-api.veetik.com`)"
- "traefik.http.services.tasks-backend.loadbalancer.server.port=8000"
- "traefik.docker.network=proxy"
networks:
- proxy
- default
frontend:
depends_on: [backend]
image: veetik/tasks-frontend:prod
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.tasks-frontend.entrypoints=https"
- "traefik.http.routers.tasks-frontend.tls=true"
- "traefik.http.routers.tasks-frontend.service=tasks-frontend"
- "traefik.http.routers.tasks-frontend.rule=Host(`tasks.veetik.com`)"
- "traefik.http.services.tasks-frontend.loadbalancer.server.port=3000"
- "traefik.docker.network=proxy"
networks:
- proxy
networks:
proxy:
external: true