-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (40 loc) · 969 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (40 loc) · 969 Bytes
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
version: "3.9"
services:
db:
image: postgres:16-alpine
container_name: mozaika-db
restart: unless-stopped
environment:
POSTGRES_DB: mozaika
POSTGRES_USER: mozaika
POSTGRES_PASSWORD: mozaika
volumes:
- mozaika_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mozaika -d mozaika"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
container_name: mozaika-backend
restart: unless-stopped
environment:
MOZAIKA_DATABASE_URL: postgresql+psycopg://mozaika:mozaika@db:5432/mozaika
MOZAIKA_DATABASE_ECHO: "false"
MOZAIKA_MAX_UPLOAD_MB: "25"
depends_on:
db:
condition: service_healthy
frontend:
build:
context: ./frontend
container_name: mozaika-frontend
restart: unless-stopped
depends_on:
- backend
ports:
- "8080:80"
volumes:
mozaika_pgdata: