Python docker

This commit is contained in:
Juan Pablo Vial
2022-03-10 15:11:26 -03:00
parent f29bc8f05f
commit 1c5467e8fb
6 changed files with 31 additions and 921 deletions

View File

@ -1,11 +1,15 @@
version: '3'
x-restart: &restart
restart: unless-stopped
services:
web:
profiles:
- app
image: nginx:alpine
container_name: web
container_name: incoviba_web
<<: *restart
ports:
- "8080:80"
volumes:
@ -16,7 +20,8 @@ services:
profiles:
- app
build: .
container_name: php
container_name: incoviba_php
<<: *restart
env_file:
- .env
- .db.env
@ -26,9 +31,9 @@ services:
db:
profiles:
- db
container_name: db
image: mariadb:latest
restart: unless-stopped
container_name: incoviba_db
<<: *restart
env_file: .db.env
volumes:
- dbdata:/var/lib/mysql
@ -36,12 +41,20 @@ services:
adminer:
profiles:
- db
container_name: adminer
image: adminer:latest
restart: unless-stopped
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: