44 lines
940 B
YAML
44 lines
940 B
YAML
|
services:
|
||
|
nginx:
|
||
|
container_name: nginx
|
||
|
image: nginx:1.20.2-alpine
|
||
|
volumes:
|
||
|
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||
|
ports:
|
||
|
- 80:80
|
||
|
depends_on:
|
||
|
- backend
|
||
|
|
||
|
db:
|
||
|
image: postgres:alpine3.15
|
||
|
container_name: db
|
||
|
env_file: .env
|
||
|
environment:
|
||
|
POSTGRES_USER: ${POSTGRES_USER}
|
||
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||
|
volumes:
|
||
|
- db:/var/lib/postgresql/data
|
||
|
|
||
|
adminer:
|
||
|
image: adminer:4.8.1-standalone
|
||
|
container_name: adminer
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
backend:
|
||
|
build:
|
||
|
context: ./docker/backend
|
||
|
args:
|
||
|
BUILD_ENV: production
|
||
|
container_name: backend
|
||
|
environment:
|
||
|
BACKEND_SERVER_PORT: 8080
|
||
|
BACKEND_SERVER_HOST: 0.0.0.0
|
||
|
BACKEND_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_USER}
|
||
|
BACKEND_JWT_SECRET: ${BACKEND_JWT_SECRET}
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
volumes:
|
||
|
db:
|