36 lines
694 B
YAML
36 lines
694 B
YAML
services:
|
|
db:
|
|
image: postgis/postgis:15-3.4
|
|
container_name: teeoff_db
|
|
environment:
|
|
POSTGRES_USER: teeoff_admin
|
|
POSTGRES_PASSWORD: teeoff_secret_password
|
|
POSTGRES_DB: teeoff
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- teeoff_db_data:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
|
|
api:
|
|
build: ./backend
|
|
container_name: teeoff_api
|
|
ports:
|
|
- "8001:8000"
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
container_name: teeoff_frontend
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./frontend:/app
|
|
depends_on:
|
|
- api
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
teeoff_db_data:
|