2022-02-26 20:19:02 -05:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
postgres:
|
2022-12-14 01:26:50 -05:00
|
|
|
image: postgres:15
|
2022-03-26 15:37:02 -05:00
|
|
|
environment:
|
2022-02-26 20:19:02 -05:00
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- POSTGRES_DATABASE=postgres
|
2022-03-26 15:37:02 -05:00
|
|
|
volumes:
|
2022-02-26 20:19:02 -05:00
|
|
|
- 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'
|
2022-10-22 16:23:23 -05:00
|
|
|
env_file:
|
|
|
|
- .env.local
|
2022-02-26 20:19:02 -05:00
|
|
|
volumes:
|
|
|
|
- '$PWD/uploads:/zipline/uploads'
|
|
|
|
- '$PWD/public:/zipline/public'
|
|
|
|
depends_on:
|
|
|
|
- 'postgres'
|
|
|
|
|
|
|
|
volumes:
|
2022-10-19 21:43:01 -05:00
|
|
|
pg_data:
|