You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

38 lines
791 B

version: '3'
services:
app:
build:
context: ./api/
dockerfile: Dockerfile
volumes:
- ./api:/var/www/html
env_file:
- .env
- .docker.env
ports:
- "0.0.0.0:${API_WEB_PORT:-8888}:80"
proxy:
image: conv/zedach.io:proxy
env_file:
- .env
build:
context: ./proxy/
dockerfile: Dockerfile
ports:
- "0.0.0.0:8081:80"
links:
- app
database:
image: mysql:5.7
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- database_datavolume:/var/lib/mysql/
ports:
- "0.0.0.0:${DB_PORT:-3306}:3306"
volumes:
database_datavolume: