Skip to content

Instantly share code, notes, and snippets.

@vkuberan
Last active December 11, 2021 20:29
Show Gist options
  • Save vkuberan/761f041cd09edfde956eef64971b7a20 to your computer and use it in GitHub Desktop.
Save vkuberan/761f041cd09edfde956eef64971b7a20 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
ubuntu:
build: .
container_name: ubuntu_stack
restart: unless-stopped
stdin_open: true
tty: true
volumes:
- ./webroot:/var/www/html/
ports:
- 8085:80
networks:
- ubuntustack
mariadb:
image: mariadb:latest
container_name: ubuntu_stack_maria_db
restart: unless-stopped
ports:
- 33063:3306
environment:
- MARIADB_USER=root
- MARIADB_PASSWORD=root
- MARIADB_ROOT_PASSWORD=root
networks:
- ubuntustack
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: ubuntu_stack_php_my_admin
restart: unless-stopped
ports:
- 2599:80
environment:
- PMA_ARBITRARY=1
networks:
- ubuntustack
networks:
ubuntustack:
name: ubuntu_stack_network
driver: bridge
volumes:
ubuntu:
name: htdocs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment