34 lines
682 B
YAML
34 lines
682 B
YAML
version: '3'
|
|
services:
|
|
postgres:
|
|
image: postgres:15
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DATABASE=postgres
|
|
volumes:
|
|
- pg_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U postgres']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
zipline:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- '3000:3000'
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env.local
|
|
volumes:
|
|
- '$PWD/uploads:/zipline/uploads'
|
|
- '$PWD/public:/zipline/public'
|
|
depends_on:
|
|
- 'postgres'
|
|
|
|
volumes:
|
|
pg_data:
|