2024-01-05 03:50:33 +03:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres-data:
|
2024-04-29 23:05:53 +03:00
|
|
|
storage:
|
2024-05-05 22:26:52 +03:00
|
|
|
frontend:
|
2024-01-05 03:50:33 +03:00
|
|
|
|
|
|
|
services:
|
2024-05-05 22:26:52 +03:00
|
|
|
caddy:
|
2024-04-29 23:01:24 +03:00
|
|
|
build:
|
|
|
|
context: .
|
2024-05-05 22:26:52 +03:00
|
|
|
dockerfile: build/caddy/Dockerfile
|
|
|
|
volumes:
|
|
|
|
- frontend:/app/frontend/dist:ro
|
|
|
|
- storage:/app/store:ro
|
2024-04-29 23:01:24 +03:00
|
|
|
ports:
|
2024-05-05 22:26:52 +03:00
|
|
|
- 8989:80
|
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: build/api/Dockerfile
|
2024-04-29 23:01:24 +03:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
env_file:
|
|
|
|
- .env
|
2024-04-29 23:05:53 +03:00
|
|
|
volumes:
|
2024-05-05 22:26:52 +03:00
|
|
|
- frontend:/app/frontend/dist:rw
|
2024-04-29 23:05:53 +03:00
|
|
|
- storage:/app/store:rw
|
2024-01-05 03:50:33 +03:00
|
|
|
db:
|
|
|
|
image: postgres:15-alpine3.17
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
env_file:
|
|
|
|
- .env
|