Docker
This commit is contained in:
54
docker-compose.yml
Normal file
54
docker-compose.yml
Normal file
@ -0,0 +1,54 @@
|
||||
version: '3'
|
||||
|
||||
x-restart:
|
||||
&restart
|
||||
restart: unless-stopped
|
||||
x-timezone:
|
||||
&tz
|
||||
TZ: America/Santiago
|
||||
|
||||
services:
|
||||
proxy:
|
||||
image: nginx:alpine
|
||||
container_name: incoviba_proxy
|
||||
<<: *restart
|
||||
environment: *tz
|
||||
ports:
|
||||
- "8081:80"
|
||||
volumes:
|
||||
- ./:/code
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
api:
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
container_name: incoviba_api
|
||||
<<: *restart
|
||||
environment: *tz
|
||||
env_file:
|
||||
- .env
|
||||
- .db.env
|
||||
- .api.key
|
||||
volumes:
|
||||
- ./:/code
|
||||
- ./php.ini:/usr/local/etc/php/conf.d/docker.ini
|
||||
- ./logs/php/:/var/log/php/
|
||||
|
||||
db:
|
||||
container_name: db
|
||||
image: mariadb:latest
|
||||
<<: *restart
|
||||
environment: *tz
|
||||
env_file: .db.env
|
||||
volumes:
|
||||
- incoviba_data:/var/lib/mysql
|
||||
adminer:
|
||||
container_name: adminer
|
||||
image: adminer:latest
|
||||
<<: *restart
|
||||
environment: *tz
|
||||
ports:
|
||||
- "8083:8080"
|
||||
env_file: .adminer.env
|
||||
|
||||
volumes:
|
||||
incoviba_data: {}
|
Reference in New Issue
Block a user