Reorder docker

This commit is contained in:
2023-10-11 09:00:00 -03:00
parent d8a81db78b
commit e4328d8604
3 changed files with 20 additions and 17 deletions

15
adminer-compose.yml Normal file
View File

@ -0,0 +1,15 @@
services:
adminer:
profiles:
- db
container_name: incoviba_adminer
image: adminer
restart: unless-stopped
env_file: ${APP_PATH:-.}/.adminer.env
networks:
- adminer_network
ports:
- "8083:8080"
networks:
adminer_network: {}

View File

@ -4,11 +4,11 @@ x-restart: &restart
restart: unless-stopped
services:
web:
proxy:
profiles:
- app
image: nginx:alpine
container_name: incoviba_web
container_name: incoviba_proxy
<<: *restart
ports:
- "${APP_PORT}:80"
@ -17,11 +17,11 @@ services:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./logs/proxy:/logs
php:
web:
profiles:
- app
build: .
container_name: incoviba_php
container_name: incoviba_web
<<: *restart
env_file:
- ${APP_PATH:-.}/.env
@ -45,18 +45,6 @@ services:
- default
- adminer_network
adminer:
profiles:
- db
image: adminer:latest
container_name: incoviba_adminer
<<: *restart
env_file: ${APP_PATH:-.}/.adminer.env
networks:
- adminer_network
ports:
- "8083:8080"
python:
profiles:
- python

View File

@ -18,6 +18,6 @@ server {
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_index index.php;
fastcgi_read_timeout 3600;
fastcgi_pass php:9000;
fastcgi_pass web:9000;
}
}