-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
51 lines (49 loc) · 912 Bytes
/
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
services:
fastapi:
build:
context: services/fastapi
restart: unless-stopped
expose:
- 8080
networks:
- local
depends_on:
- postgres
postgres:
image: postgres:latest
restart: unless-stopped
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=pf9K6bCTkz2rgCzgN2AsWLRuK8
- POSTGRES_DB=example
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- local
caddy:
image: caddy:latest
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy-data:/data
- caddy-config:/config
networks:
- local
- web
depends_on:
- fastapi
networks:
web:
external: false
local:
external: false
driver: bridge
volumes:
postgres-data:
caddy-data:
caddy-config: