v0.1.0
This commit is contained in:
77
docker-compose.yml
Normal file
77
docker-compose.yml
Normal file
@ -0,0 +1,77 @@
|
||||
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
|
||||
env_file: common.env
|
||||
volumes:
|
||||
- .:/app
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
backend:
|
||||
container_name: crypto-backend
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: PHP.Dockerfile
|
||||
env_file:
|
||||
- common.env
|
||||
- .db.env
|
||||
volumes:
|
||||
- .:/app
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
# python:
|
||||
# container_name: python
|
||||
# build:
|
||||
# context: ./backend
|
||||
# dockerfile: Py.Dockerfile
|
||||
# volumes:
|
||||
# - ./backend/python:/app/src
|
||||
# - ./backend/api/bin:/app/bin
|
||||
# tty: true
|
||||
# stdin_open: true
|
||||
|
||||
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:
|
Reference in New Issue
Block a user