Files
money/docker-compose.yml

94 lines
1.9 KiB
YAML
Raw Normal View History

2021-03-15 17:41:25 -03:00
version: '3'
services:
app-server:
container_name: money_app
image: nginx:alpine
ports:
- 8081:80
volumes:
- .:/code
- ./app/docker/nginx.conf:/etc/nginx/conf.d/default.conf
2021-03-19 22:49:09 -03:00
depends_on:
- app-php
2021-03-15 17:41:25 -03:00
app-php:
container_name: money_app_php
build:
context: ./app/docker
dockerfile: PHP.Dockerfile
volumes:
- .:/code
ports:
- 9123:9000
2021-04-12 00:43:39 -04:00
app-cron:
2021-04-13 23:02:10 -04:00
container_name: money_cron
2021-04-12 00:43:39 -04:00
image: sleeck/crond
volumes:
- ./automation/crontab:/etc/cron.d/auto-crontab
- ./automation/logs:/var/log/cron
2021-03-15 17:41:25 -03:00
2021-03-18 23:17:41 -03:00
ui-server:
container_name: money_ui
image: nginx:alpine
ports:
- 8080:80
volumes:
- .:/code
- ./ui/docker/nginx.conf:/etc/nginx/conf.d/default.conf
2021-03-19 22:49:09 -03:00
depends_on:
- ui-php
2021-03-18 23:17:41 -03:00
ui-php:
container_name: money_ui_php
build:
context: ./ui/docker
dockerfile: PHP.Dockerfile
volumes:
- .:/code
ports:
- 9124:9000
2021-03-30 16:39:52 -03:00
ws-server:
container_name: money_ws
image: nginx:alpine
ports:
- 8020:80
volumes:
- .:/code
- ./ws/docker/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- ws-php
ws-php:
container_name: money_ws_php
restart: unless-stopped
build:
context: ./ws/docker
dockerfile: PHP.Dockerfile
volumes:
- .:/code
2021-03-15 17:41:25 -03:00
db:
container_name: money_db
image: mariadb:latest
restart: unless-stopped
ports:
- 3307:3306
environment:
MYSQL_ROOT_PASSWORD: 'money'
2021-04-13 21:01:56 -04:00
MYSQL_DATABASE: ${DB_NAME-money_dev}
MYSQL_USER: '${DB_USER-money}'
MYSQL_PASSWORD: '${DB_PASSWORD-money_pass}'
2021-03-15 17:41:25 -03:00
volumes:
- dbdata:/var/lib/mysql
adminer:
container_name: money_adminer
image: adminer:latest
restart: unless-stopped
ports:
- 8082:8080
environment:
ADMINER_DESIGN: 'dracula'
2021-03-16 00:51:33 -03:00
ADMINER_PLUGINS: 'dump-json'
2021-03-15 17:41:25 -03:00
volumes:
dbdata: