-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (53 loc) · 1.16 KB
/
docker-compose.yaml
File metadata and controls
57 lines (53 loc) · 1.16 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
services:
backend:
build: .
command: ["/app/webserver"]
ports:
- "${PORT:-8080}:8080"
env_file:
- .env.compose
depends_on:
- db
- dragonfly
initdb:
build: .
command: ["/app/initdb"]
env_file:
- .env.compose
environment:
- SQL_FILE=/app/db/CreateTables.sql
depends_on:
- backend
dropdb:
build: .
command: ["/app/dropdb"]
env_file:
- .env.compose
environment:
- SQL_FILE=/app/db/DropTables.sql
depends_on:
- backend
db:
image: postgres:17.1-alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=${DB_NAME:-sguhack}
- POSTGRES_USER=${DB_USER:-sguhack}
env_file:
- .env.compose
healthcheck:
test: "pg_isready --username=${DB_USER:-sguhack} --database=${DB_NAME:-sguhack}"
interval: 5s
timeout: 5s
retries: 3
start_period: 5s
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly
ulimits:
memlock: -1
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 5s
timeout: 5s
retries: 3
start_period: 5s