Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
Last active November 19, 2024 23:28
Show Gist options
  • Save kuc-arc-f/747dc290b91ebf48bc5656f6949969b8 to your computer and use it in GitHub Desktop.
Save kuc-arc-f/747dc290b91ebf48bc5656f6949969b8 to your computer and use it in GitHub Desktop.
docker-bun-postgres
version: '3'
services:
bun:
build: ./docker-bun
ports:
- 3000:3000
volumes:
- ./:/work
tty: true
db:
image: postgres:12.8
ports:
- 5432:5432
volumes:
- ./db_data:/var/lib/postgresql/data
restart: always
environment:
- POSTGRES_DB=laravel
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
FROM debian
RUN apt-get update && apt-get install -y \
zip \
unzip \
curl
WORKDIR /work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment