2021-06-28 23:15:13 -04:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
proxy:
|
|
|
|
container_name: crypto-proxy
|
|
|
|
restart: unless-stopped
|
|
|
|
image: nginx:latest
|
|
|
|
ports:
|
|
|
|
- 8080:${FRONTEND_PORT}
|
|
|
|
- 8081:${BACKEND_PORT}
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
- ./frontend/nginx.conf:/etc/nginx/templates/default.conf.template
|
|
|
|
- ./backend/nginx.conf:/etc/nginx/templates/backend.conf.template
|
|
|
|
- ./logs:/var/log/nginx
|
|
|
|
env_file: .env
|
|
|
|
depends_on:
|
|
|
|
- frontend
|
|
|
|
- backend
|
|
|
|
|
|
|
|
frontend:
|
|
|
|
container_name: crypto-frontend
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: ./frontend
|
|
|
|
dockerfile: PHP.Dockerfile
|
2021-07-07 08:55:49 -04:00
|
|
|
env_file: .common.env
|
2021-06-28 23:15:13 -04:00
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
backend:
|
|
|
|
container_name: crypto-backend
|
|
|
|
build:
|
|
|
|
context: ./backend
|
|
|
|
dockerfile: PHP.Dockerfile
|
|
|
|
env_file:
|
2021-07-07 08:55:49 -04:00
|
|
|
- .common.env
|
2021-06-28 23:15:13 -04:00
|
|
|
- .db.env
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
2021-07-14 10:12:53 -04:00
|
|
|
cron:
|
|
|
|
container_name: crypto-cron
|
|
|
|
build:
|
|
|
|
context: ./backend
|
|
|
|
dockerfile: Cron.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./backend/automation/crontab:/var/spool/cron/crontabs/backend
|
|
|
|
|
|
|
|
python:
|
|
|
|
container_name: crypto-python
|
|
|
|
build:
|
|
|
|
context: ./backend
|
|
|
|
dockerfile: Py.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./backend/python:/app
|
|
|
|
- ./backend/automation/bin:/app/bin
|
2021-06-28 23:15:13 -04:00
|
|
|
|
|
|
|
db:
|
|
|
|
container_name: crypto-db
|
|
|
|
restart: unless-stopped
|
|
|
|
image: mariadb:latest
|
|
|
|
env_file: .db.env
|
|
|
|
volumes:
|
|
|
|
- mysqldata:/var/lib/mysql
|
|
|
|
|
|
|
|
adminer:
|
|
|
|
container_name: crypto-adminer
|
|
|
|
restart: unless-stopped
|
|
|
|
image: adminer
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
ports:
|
|
|
|
- 8082:8080
|
|
|
|
environment:
|
|
|
|
ADMINER_DESIGN: "dracula"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mysqldata:
|