mentorenwahl/docker-compose.yml
Dominic Grimm a9fc6a43b1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Renamed backend to api
2022-01-20 21:17:24 +01:00

42 lines
833 B
YAML

services:
nginx:
container_name: nginx
image: nginx:alpine
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- 80:80
depends_on:
- api
db:
image: postgres:alpine
container_name: db
env_file: .env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- db:/var/lib/postgresql/data
adminer:
image: adminer:standalone
container_name: adminer
depends_on:
- db
api:
build:
context: ./docker/api
args:
BUILD_ENV: production
container_name: api
environment:
API_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_USER}
API_JWT_SECRET: ${API_JWT_SECRET}
depends_on:
- db
volumes:
db: null