-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.yml
More file actions
83 lines (71 loc) · 1.75 KB
/
local.yml
File metadata and controls
83 lines (71 loc) · 1.75 KB
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
services:
traefik:
image: docker.io/traefik:v3.2
restart: unless-stopped
ports:
# - "80:80"
# - "8080:8080"
- "8080:80"
- "8081:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./backend/docker/local/traefik/traefik.yml:/etc/traefik/traefik.yml
networks:
- nextgen_local_nw
command:
- --providers.docker
api: &api
build:
context: .
dockerfile: ./backend/docker/local/fastapi/Dockerfile
volumes:
- .:/src
- ./backend/app/logs:/src/backend/app/logs
ports:
- "8000:8000"
env_file:
- ./.envs/.env.local
depends_on:
- postgres
- mailpit
command: /start.sh
networks:
- nextgen_local_nw
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.entrypoints=web"
- "traefik.http.routers.api.rule=Host(`api.localhost`)"
- "traefik.http.routers.api.service=api-service"
- "traefik.http.services.api-service.loadbalancer.server.port=8000"
mailpit:
image: docker.io/axllent/mailpit:v1.20.3
ports:
- "8025:8025"
- "1025:1025" #smtp port
volumes:
- nextgen_mailpit_data:/data
environment:
MP_MAX_MESSAGES: 5000
MP_DATA_FILE: /data/mailpit.db
MP_SMTP_AUTH_ACCPEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
networks:
- nextgen_local_nw
postgres:
build:
context: .
dockerfile: ./backend/docker/local/postgres/Dockerfile
ports:
- "5432:5432"
volumes:
- nextgen_local_db:/var/lib/postgresql/data
env_file:
- ./.envs/.env.local
networks:
- nextgen_local_nw
networks:
nextgen_local_nw:
external: true
volumes:
nextgen_local_db:
nextgen_mailpit_data: