54 lines
803 B
YAML
54 lines
803 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
vfxreview:
|
|
image: vfxreview:1.0.1
|
|
container_name: vfxreview
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
- .env
|
|
|
|
volumes:
|
|
- ./uploads:/app/uploads
|
|
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
networks:
|
|
- app-net
|
|
- npm_default
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
container_name: vfxreview-db
|
|
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: feedback
|
|
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
- app-net
|
|
|
|
volumes:
|
|
pgdata:
|
|
|
|
networks:
|
|
app-net:
|
|
|
|
npm_default:
|
|
external: true |