This repository has been archived on 2024-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
helseveileder/backend/docker-compose.yml
haraldnilsen 2a5a366673 🚧 removed ports from docker-compose
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 13:09:06 +01:00

30 lines
591 B
YAML

version: "3.9"
services:
postgres:
image: postgres:14-alpine
ports:
- 5432:5432
volumes:
- ~/apps/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=helse123
- POSTGRES_USER=admin
- POSTGRES_DB=helseveileder
ginapi:
build:
context: .
dockerfile: Dockerfile
image: helseveileder
depends_on:
- postgres
nginx:
image: nginx:latest
ports:
- 80:80
- 443:443
volumes:
- ./nginx/conf:/etc/nginx/conf.d
- ./certs:/etc/nginx/certs:ro
depends_on:
- ginapi