Files
tryno10/docker-compose.prod.yml
T
2022-04-07 16:21:17 +05:30

27 lines
437 B
YAML

version: "3.7"
services:
app:
build:
args:
COMPOSER_ENV : production
context: ./app
dockerfile: Dockerfile
environment:
- COMPOSER_ENV=production
nginx:
volumes:
- ./app/code:/var/www:ro
- ./nginx:/etc/nginx/conf.d:ro
depends_on:
- app
- database
database:
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: test