Skip to content

Instantly share code, notes, and snippets.

@billchenxi
Last active April 10, 2020 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billchenxi/445cfa6f95c3d7288fa61bb8cedd4780 to your computer and use it in GitHub Desktop.
Save billchenxi/445cfa6f95c3d7288fa61bb8cedd4780 to your computer and use it in GitHub Desktop.
version: '3'
services:
db:
image: mysql
container_name: mysql_db
restart: always
environment:
- MYSQL_ROOT_PASSWORD="secret"
web:
image: apache
build: ./webapp
depends_on:
- db
container_name: apache_web
restart: always
ports:
- "8080:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment