Skip to content

Commit

Permalink
Add Docker Hub compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
ssl committed Apr 27, 2021
1 parent 1aa0949 commit 973dd24
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docker-compose.hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: '3'

services:
ezxss.db:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=${dbName}
- MYSQL_USER=${dbUser}
- MYSQL_PASSWORD=${dbPassword}
volumes:
- ./ezxssdb:/var/lib/mysql

ezxss.app:
image: 42elyesa/ezxss:latest
ports:
- "80:80"
- "443:443"
restart: unless-stopped
volumes:
- ./.env:/var/www/html/.env:ro
- assets:/var/www/html/assets/
depends_on:
- ezxssdb

volumes:
assets:
driver: local
driver_opts:
o: bind
type: none
device: /absolute/path/to/host/directory/where/assets/should/be/mounted/

0 comments on commit 973dd24

Please sign in to comment.