Files
oficial/docker-compose.yml
Juan Pablo Vial 1c5467e8fb Python docker
2022-03-10 15:11:26 -03:00

61 lines
964 B
YAML

version: '3'
x-restart: &restart
restart: unless-stopped
services:
web:
profiles:
- app
image: nginx:alpine
container_name: incoviba_web
<<: *restart
ports:
- "8080:80"
volumes:
- .:/code
- ./nginx.conf:/etc/nginx/conf.d/default.conf
php:
profiles:
- app
build: .
container_name: incoviba_php
<<: *restart
env_file:
- .env
- .db.env
volumes:
- .:/code
db:
profiles:
- db
image: mariadb:latest
container_name: incoviba_db
<<: *restart
env_file: .db.env
volumes:
- dbdata:/var/lib/mysql
adminer:
profiles:
- db
image: adminer:latest
container_name: incoviba_adminer
<<: *restart
ports:
- "8083:8080"
env_file: .adminer.env
python:
profiles:
- python
build:
dockerfile: Python.Dockerfile
container_name: incoviba_python
<<: *restart
volumes:
dbdata: