49 lines
830 B
YAML
49 lines
830 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16
|
|
environment:
|
|
POSTGRES_DB: pricewatch
|
|
POSTGRES_USER: pricewatch
|
|
POSTGRES_PASSWORD: pricewatch
|
|
TZ: Europe/Paris
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pricewatch_pgdata:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:7
|
|
environment:
|
|
TZ: Europe/Paris
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- pricewatch_redisdata:/data
|
|
|
|
api:
|
|
build: .
|
|
ports:
|
|
- "8001:8000"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
PW_DB_HOST: postgres
|
|
PW_REDIS_HOST: redis
|
|
TZ: Europe/Paris
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
|
|
frontend:
|
|
build: ./webui
|
|
ports:
|
|
- "3000:80"
|
|
environment:
|
|
TZ: Europe/Paris
|
|
depends_on:
|
|
- api
|
|
|
|
volumes:
|
|
pricewatch_pgdata:
|
|
pricewatch_redisdata:
|