Profiles and cleanup

This commit is contained in:
2022-03-07 18:08:25 -03:00
parent 6a5efba272
commit 1754633475
2 changed files with 13 additions and 2 deletions

View File

@ -1,2 +1,3 @@
COMPOSE_PROFILES=
BASE_URL=
MYSQL_HOST=

View File

@ -2,21 +2,29 @@ version: '3'
services:
web:
profiles:
- app
image: nginx:alpine
container_name: web
ports:
- 8080:80
- "8080:80"
volumes:
- .:/code
- ./nginx.conf:/etc/nginx/conf.d/default.conf
php:
profiles:
- app
build: .
container_name: php
env_file:
- .env
volumes:
- .:/code
db:
profiles:
- db
container_name: db
image: mariadb:latest
restart: unless-stopped
@ -25,11 +33,13 @@ services:
- dbdata:/var/lib/mysql
adminer:
profiles:
- db
container_name: adminer
image: adminer:latest
restart: unless-stopped
ports:
- 8083:8080
- "8083:8080"
env_file: .adminer.env
volumes: