Skip to content

Instantly share code, notes, and snippets.

@fabiomen10
Forked from soapdog/docker-compose.yml
Created June 18, 2021 16:16
Show Gist options
  • Save fabiomen10/bfaec376c51e8fd27fcafb14ff22eba2 to your computer and use it in GitHub Desktop.
Save fabiomen10/bfaec376c51e8fd27fcafb14ff22eba2 to your computer and use it in GitHub Desktop.
Sample docker compose file for developing Sailor framework based web apps
version: '2'
services:
web:
depends_on:
- db
build: academy-server/.
image: amoralabs/academy
ports:
- "8080:80"
- "8443:443"
volumes:
- ../:/var/www/html/
environment:
ACADEMY_DB_HOST: database
ACADEMY_DB_USER: theuser
ACADEMY_DB_PASSWORD: thepassword
links:
- "db:database"
db:
image: mysql
ports:
- "3307:3306"
volumes:
- ./academy-db:/docker-entrypoint-initdb.d
restart: always
environment:
MYSQL_ROOT_PASSWORD: thepassword
MYSQL_DATABASE: thedatabase
MYSQL_USER: theuser
MYSQL_PASSWORD: supersecretpassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment