-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
57 lines (52 loc) · 1.43 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
version: '3.8'
services:
alice-traint:
build:
context: .
environment:
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=user
- DB_PASSWORD=password
- DB_NAME=AliceTraINT_db
- DB_SSLMODE=disable
ports:
- "8088:8088"
depends_on:
postgres:
condition: service_healthy
volumes:
- ./data:/app/data
# Dev-friendly mounts: allow Tailwind output.css updates to be written to the host repo.
- ./static:/app/static
- ./web:/app/web:ro
- ./tailwind.config.js:/app/tailwind.config.js:ro
# Development helper: watches templates and css input and regenerates static/css/output.css.
# This writes output.css into the host repo via the bind mount above.
tailwind:
build:
context: .
command: >
sh -lc "tailwindcss -i static/css/input.css -o static/css/output.css --watch --poll"
volumes:
- ./static:/app/static
- ./web:/app/web:ro
- ./tailwind.config.js:/app/tailwind.config.js:ro
postgres:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: AliceTraINT_db
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: