-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
63 lines (59 loc) · 1.59 KB
/
docker-compose.prod.yml
File metadata and controls
63 lines (59 loc) · 1.59 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER:-pseuno}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB:-pseuno}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pseuno -d pseuno"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- ./backend/.env
environment:
DEBUG: "false"
FRONTEND_ORIGIN: https://pseuno.com
DATABASE_URL: postgresql+psycopg://${POSTGRES_USER:-pseuno}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-pseuno}
REDIS_URL: redis://redis:6379/0
POSTHOG_API_KEY: phc_QSa2Ckp3pGSJvQVSKo7WZ46mVzlkyQkfJbO0afgPxkE
POSTHOG_HOST: https://us.i.posthog.com
APP_ENV: prod
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_API_BASE: https://pseuno.com
VITE_POSTHOG_KEY: phc_QSa2Ckp3pGSJvQVSKo7WZ46mVzlkyQkfJbO0afgPxkE
VITE_POSTHOG_HOST: https://us.i.posthog.com
VITE_APP_ENV: prod
ports:
- "80:80"
depends_on:
- backend
volumes:
postgres_data:
redis_data: