-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
70 lines (65 loc) · 1.7 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
70 lines (65 loc) · 1.7 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
services:
postgres:
image: postgres:16-alpine
container_name: frandy_postgres_dev
environment:
POSTGRES_USER: frandy
POSTGRES_PASSWORD: devpassword
POSTGRES_DB: portfolio
ports:
- "5432:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
networks:
- frandy_dev_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U frandy -d portfolio"]
interval: 10s
timeout: 5s
retries: 5
fastapi:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: frandy_fastapi_dev
environment:
DATABASE_URL: postgresql+asyncpg://frandy:devpassword@postgres:5432/portfolio
SECRET_KEY: dev-secret-key-change-in-production
RESEND_API_KEY: re_placeholder
CONTACT_EMAIL: frandyslueue@gmail.com
GITHUB_TOKEN: placeholder
GITHUB_USERNAME: frandy-slueue
UMAMI_API_URL: http://umami:3001/api
UMAMI_API_KEY: placeholder
UMAMI_WEBSITE_ID: placeholder
UPLOAD_DIR: /app/uploads
volumes:
- ./backend:/app
ports:
- "8000:8000"
networks:
- frandy_dev_network
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
umami:
image: ghcr.io/umami-software/umami:postgresql-latest
container_name: frandy_umami_dev
environment:
DATABASE_URL: postgresql://frandy:devpassword@postgres:5432/umami
APP_SECRET: dev-umami-secret
ports:
- "3001:3001"
networks:
- frandy_dev_network
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
volumes:
postgres_dev_data:
uploads_dev:
networks:
frandy_dev_network:
driver: bridge