Skip to content

Commit

Permalink
feat: docker-compose.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
diced committed Aug 28, 2023
1 parent cadbd61 commit 9d533b5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
build:
context: .
dockerfile: Dockerfile
# entrypoint: ['yarn', 'db:prototype'] ONLY USE THIS ONCE!
ports:
- '3000:3000'
env_file:
Expand Down
38 changes: 38 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: '3'
services:
postgres:
image: postgres:15
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
interval: 10s
timeout: 5s
retries: 5

zipline:
image: ghcr.io/diced/zipline:v4
# ATTENTION !
# entrypoint: ['yarn', 'db:prototype']
# Uncomment the above for the first run, then comment it out again after it runs once.
# The database is subject to change, this will reset to match the prisma schema.
ports:
- '3000:3000'
env_file:
- .env
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres/postgres
depends_on:
- postgres
volumes:
- './uploads:/zipline/uploads'
- './public:/zipline/public'
- './themes:/zipline/themes'

volumes:
pgdata:

0 comments on commit 9d533b5

Please sign in to comment.