-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.14 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
networks:
cloudflared_proxy:
external: true
services:
postgres:
image: postgres:15
container_name: pm_postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_NAME}
POSTGRES_PORT: ${POSTGRES_PORT}
volumes:
- ./postgres/data:/var/lib/postgresql/data
networks:
- default
- cloudflared_proxy
fastapi:
build: .
image: pm-fastapi:latest
container_name: pm_fastapi
restart: unless-stopped
environment:
- DATABASE_URL=postgresql+asyncpg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/${POSTGRES_NAME}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- JWT_ALGO=${JWT_ALGO}
- API_PORT=${API_PORT}
- URL_PATH_PREFIX=${URL_PATH_PREFIX}
depends_on:
- postgres
networks:
- default
- cloudflared_proxy
# adminer:
# image: adminer
# container_name: pm_adminer
# restart: unless-stopped
# ports:
# - 8080:8080
# depends_on:
# - postgres
# networks:
# - default
# - cloudflared_proxy