47 lines
844 B
YAML
47 lines
844 B
YAML
---
|
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
web:
|
|
image: foldbank-web-prod
|
|
build:
|
|
context: ./web
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
|
|
media:
|
|
image: nginx:alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./backend/media_cdn:/usr/share/nginx/html/media:ro
|
|
|
|
backend:
|
|
image: foldbank-backend-prod
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./backend/media_cdn:/code/media_cdn
|
|
env_file:
|
|
- prod.env
|
|
depends_on:
|
|
- redis
|
|
- postgres-db
|
|
|
|
redis:
|
|
image: redis:7.0.0-alpine3.16
|
|
restart: unless-stopped
|
|
|
|
postgres-db:
|
|
image: postgres:14.3-alpine3.16
|
|
restart: unless-stopped
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data/pgdata
|
|
env_file:
|
|
- prod.env
|
|
|
|
volumes:
|
|
postgres-data:
|
|
|