-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
59 lines (55 loc) · 1.3 KB
/
compose.yaml
File metadata and controls
59 lines (55 loc) · 1.3 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
services:
caddy:
image: "caddy:2.8.4-alpine"
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_config:/config
postgres:
image: "bitnami/postgresql:16"
ports:
- "5432:5432"
environment:
- POSTGRESQL_USERNAME=user
- POSTGRESQL_PASSWORD=pass
- POSTGRESQL_DATABASE=todos
volumes:
- "postgres_data:/bitnami/postgresql"
server:
build:
context: ./server
ports:
- "8000:8000"
environment:
- SERVER_DEBUG=False
- SERVER_ENVIRONMENT=production
- SERVER_HOST=0.0.0.0
- SERVER_PORT=8000
- SERVER_LOG_LEVEL=INFO
- SERVER_CORS_ALLOW_ORIGINS=["http://localhost", "http://127.0.0.1", "https://localhost", "https://127.0.0.1"]
- SERVER_OPENAPI_URL=
- SERVER_DATABASE_URL=postgresql+asyncpg://user:pass@postgres:5432/todos
- SERVER_DATABASE_POOL_SIZE=20
- SERVER_ROOT_PATH="/api"
depends_on:
- postgres
client:
image: client
build:
context: ./client
environment:
NODE_ENV: production
VITE_API_URL: "/api/graphql/"
ports:
- 3000:3000
depends_on:
- server
volumes:
postgres_data:
caddy_config: