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.
41 lines
854 B
41 lines
854 B
4 years ago
|
version: '2'
|
||
|
|
||
|
services:
|
||
|
|
||
|
# The Application
|
||
|
app:
|
||
|
container_name: willaengine
|
||
|
#build:
|
||
|
# context: ./
|
||
|
image: registry.willaspace.com/willaspace/willaengine
|
||
|
volumes:
|
||
|
- ~/apps/nginx/www/willaengine/storage:/var/www/storage
|
||
|
- ~/apps/nginx/www/willaengine/public:/var/www/public
|
||
|
env_file: '.env.prod'
|
||
|
environment:
|
||
|
- "DB_HOST=mysql_database"
|
||
|
- "REDIS_HOST=cache"
|
||
|
|
||
|
# The Database
|
||
|
database:
|
||
|
container_name: mysql_database
|
||
|
image: mysql
|
||
|
volumes:
|
||
|
- dbdata:/var/lib/mysql
|
||
|
environment:
|
||
|
- "MYSQL_DATABASE=willaengine"
|
||
|
- "MYSQL_USER=wmuser"
|
||
|
- "MYSQL_PASSWORD=ksgHJujtfYSUYiGJdfuK9w7dstfs"
|
||
|
- "MYSQL_ROOT_PASSWORD=ksgHJujtfYSUYiGJdfuK9w7dstfs"
|
||
|
ports:
|
||
|
- 3306:3306
|
||
|
# redis
|
||
|
cache:
|
||
|
container_name: cache
|
||
|
image: redis:alpine
|
||
|
|
||
|
volumes:
|
||
|
dbdata:
|
||
|
|
||
|
|