Last active
April 30, 2023 02:38
-
-
Save pedroskakum/b73834c6774839ab71d8e4245900c17a to your computer and use it in GitHub Desktop.
docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
joomla: | |
image: joomla | |
restart: always | |
links: | |
- joomladb:mysql | |
ports: | |
- 8080:80 | |
environment: | |
JOOMLA_DB_HOST: joomladb | |
JOOMLA_DB_PASSWORD: example | |
joomladb: | |
image: mysql:5.6 | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
volumes: | |
mariadb: | |
driver: local | |
networks: | |
db: | |
driver: bridge | |
services: | |
mariadb: | |
image: mariadb:lastest | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: YOUR_ROOT_PASSWORD_HERE | |
MYSQL_USER: YOUR_MYSQL_USER_HERE | |
MYSQL_PASSWORD: YOUR_USER_PW_HERE | |
expose: | |
- "40000" | |
ports: | |
- "40000:3306" | |
volumes: | |
- mariadb:/var/lib/mysql | |
networks: | |
db: | |
phpmyadmin: | |
image: phpmyadmin | |
restart: always | |
expose: | |
- "40001" | |
ports: | |
- "40001:80" | |
environment: | |
- PMA_HOST=mariadb | |
- PMA_PORT=3306 | |
networks: | |
db: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
agent: | |
image: portainer/agent | |
volumes: | |
- type: npipe | |
source: \\.\pipe\docker_engine | |
target: \\.\pipe\docker_engine | |
- type: bind | |
source: C:\ProgramData\docker\volumes | |
target: C:\ProgramData\docker\volumes | |
networks: | |
- agent_network | |
deploy: | |
mode: global | |
placement: | |
constraints: [node.platform.os == windows] | |
portainer: | |
image: portainer/portainer | |
command: -H tcp://tasks.portainer_agent:9001 --tlsskipverify | |
ports: | |
- "9000:9000" | |
- "8000:8000" | |
volumes: | |
- portainer-data:C:\data | |
networks: | |
- agent_network | |
deploy: | |
mode: replicated | |
replicas: 1 | |
placement: | |
constraints: | |
- node.role == manager | |
- node.platform.os == windows | |
networks: | |
agent_network: | |
driver: overlay | |
volumes: | |
portainer-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
mysql: | |
image: mysql:5.7 | |
volumes: | |
- C:\Docker\MySQL\lib:/var/lib/mysql | |
- C:\Docker\MySQL\log:/var/log/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: HURapOSTRAmi | |
MYSQL_DATABASE: wordpress_database | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: GUANolAusina | |
wordpress: | |
depends_on: | |
- mysql | |
image: wordpress:latest | |
ports: | |
- "8000:80" | |
restart: always | |
volumes: | |
- C:\Docker\Wordpress:/var/www/html | |
environment: | |
WORDPRESS_DB_HOST: mysql:3306 | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: GUANolAusina | |
WORDPRESS_DB_NAME: wordpress_database |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment