This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
pwt-0x01-ng/docker-compose.yml
surtur 82d075dd01
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
feat: switch to rootless runs + refactor
* build as root but run the container as UID/GID 1000
* db expose only on localhost
* docker-compose mount $PWD for easy local debugging
2020-12-15 22:47:08 +01:00

40 lines
1008 B
YAML

version: '3.8'
services:
netcoreultimateapp-dev:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- 127.0.0.1:8001:5000
volumes:
- $PWD:/src
environment:
ASPNETCORE_ENVIRONMENT: Development
DB_CONNECTION_STRING: "User ID=postgres;Password=679968312e029a806c1905c40ec331aa199a1eb86bd0b9eb04057933e449bdc9ef8ef292a39b68cafa5689c901a17266;Server=db;Port=5432;Database=pwt;Integrated Security=true;Pooling=true;"
restart: always
cap_drop:
- NET_ADMIN
- SYS_ADMIN
depends_on:
- db
db:
container_name: 'db'
image: postgres:13.1-alpine
ports:
- 127.0.0.1:5432:5432
volumes:
- dbdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 679968312e029a806c1905c40ec331aa199a1eb86bd0b9eb04057933e449bdc9ef8ef292a39b68cafa5689c901a17266
POSTGRES_INITDB_ARGS: "--data-checksums"
restart: always
cap_drop:
- NET_ADMIN
- SYS_ADMIN
volumes:
dbdata: