forked from vejeta/conquer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.49 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
# Conquer — Local Development (T436)
# Usage: docker compose up
#
# Server: http://localhost:3000
# pgAdmin: http://localhost:5050 ([email protected] / admin)
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: conquer
POSTGRES_USER: conquer
POSTGRES_PASSWORD: conquer_dev_password
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./conquer-db/migrations/001_initial_schema.sql:/docker-entrypoint-initdb.d/001_initial_schema.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U conquer -d conquer"]
interval: 5s
timeout: 5s
retries: 5
server:
build: .
ports:
- "3000:3000"
environment:
PORT: "3000"
DATABASE_URL: "postgresql://conquer:conquer_dev_password@postgres:5432/conquer"
JWT_SECRET: "conquer-local-dev-secret-not-for-production"
RUST_LOG: "info,conquer_server=debug"
CORS_ORIGIN: "http://localhost:3000,http://localhost:5173"
STATIC_DIR: "/app/dist"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
pgadmin:
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
depends_on:
- postgres
profiles:
- tools
volumes:
pgdata: