nun mal erste komplette Version mit API und Frontend (React !)
This commit is contained in:
@@ -49,6 +49,35 @@ services:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
api:
|
||||
image: docker.citysensor.de/wetterstation-api:latest
|
||||
build:
|
||||
context: ./api
|
||||
dockerfile: Dockerfile
|
||||
container_name: wetterstation_api
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ./.env
|
||||
environment:
|
||||
DB_HOST: postgres
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
frontend:
|
||||
image: docker.citysensor.de/wetterstation-frontend:latest
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
container_name: wetterstation_frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user