Profiles and cleanup
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
COMPOSE_PROFILES=
|
||||
BASE_URL=
|
||||
MYSQL_HOST=
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user