Skip to content

Instantly share code, notes, and snippets.

@arellano-gustavo
Last active February 26, 2023 01:39
Show Gist options
  • Save arellano-gustavo/5f6861c755003c8dbcc2e11304bac3f0 to your computer and use it in GitHub Desktop.
Save arellano-gustavo/5f6861c755003c8dbcc2e11304bac3f0 to your computer and use it in GitHub Desktop.
version: '3'
services:
mariadb:
image: 'mariadb'
restart: unless-stopped
environment:
- MARIADB_USER=chavelo
- MARIADB_DATABASE=no_importa
- MARIADB_PASSWORD=secreto
- MARIADB_ROOT_PASSWORD=muy-secreto
volumes:
- ./mysql:/var/lib/mysql
networks:
- qa
web:
image: nginx
ports:
- '7765:80'
volumes:
- ./src:/var/www/html
- ./default.conf:/etc/nginx/conf.d/default.conf
links:
- php-fpm
depends_on:
- mariadb
networks:
- qa
php-fpm:
image: gustavoarellano/php:8.0.2-fpm
volumes:
- ./src:/var/www/html
networks:
- qa
networks:
qa:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment