Skip to content

Commit

Permalink
ci: setup docker networks
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Sep 25, 2024
1 parent 055e6dc commit adb209d
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
services:
app:
depends_on:
- db
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- db
- s3
restart: unless-stopped
networks:
- web
- nginx
db:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- ./data/db:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
networks:
- web
s3:
image: bitnami/minio:2024
restart: unless-stopped
environment:
MINIO_ROOT_USER: ${STORAGE_USER}
MINIO_ROOT_PASSWORD: ${STORAGE_PASSWORD}
MINIO_DEFAULT_BUCKETS: ${STORAGE_NAME}
volumes:
- ./data/s3:/bitnami/minio/data
ports:
- "9000:9000"
restart: unless-stopped
networks:
- web
networks:
web:
driver: bridge
nginx:
external: true

0 comments on commit adb209d

Please sign in to comment.