Skip to content

Instantly share code, notes, and snippets.

@uurtech
Created December 29, 2019 15:44
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 uurtech/cff013ab30752a7307e8c5d9df6ed38a to your computer and use it in GitHub Desktop.
Save uurtech/cff013ab30752a7307e8c5d9df6ed38a to your computer and use it in GitHub Desktop.
Apache mysql adminer docker container with same network
version: "3"
services:
web:
build: ./web/
volumes:
- ./app/:/var/www/html/
ports:
- 8000:80
networks:
- backend
db:
image: mysql
container_name: mysqlserver
command: --default-authentication-plugin=mysql_native_password
restart: always
networks:
- backend
environment:
MYSQL_ROOT_PASSWORD: kazdal
adminer:
image: adminer
restart: always
networks:
- backend
ports:
- 8080:8080
networks:
backend:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment