Skip to content

Instantly share code, notes, and snippets.

@horaciod
Created May 18, 2020 01:11
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 horaciod/2975a118d9b306389da446e964dc8dcc to your computer and use it in GitHub Desktop.
Save horaciod/2975a118d9b306389da446e964dc8dcc to your computer and use it in GitHub Desktop.
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: "3.1"
services:
memcached:
image: memcached:alpine
container_name: moodle-38-memcached
ports:
- 11211:11211
# para debug del mail
# mailhog:
# image: mailhog/mailhog:latest
# container_name: moodle-38-mailhog
# ports:
# - "8081:8025"
# en caso de necesitar base de datos. generalmente uso externa al server docker
# postgres:
# image: postgres:11.1-alpine
# container_name: moodle-38-postgres
# working_dir: /datos/docker/m38
# volumes:
# - ./pgdata:/application
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=clave
# - POSTGRES_DB=basededatosmoodle
# ports:
# - "54321:5432"
webserver:
image: thecodingmachine/php:7.2-v2-apache
container_name: moodle-38-webserver
working_dir: /datos/webs/moodle
volumes:
- ./:/var/www/html
- ./moodledata:/var/www/moodledata
# - ./apache2/apache2/:/etc/apache2/
# ports:
# - "8080:80"
environment:
PHP_EXTENSION_PGSQL: 1
PHP_EXTENSION_GD: 1
PHP_EXTENSION_INTL: 1
PHP_EXTENSION_XMLRPC: 1
PHP_INI_UPLOAD_MAX_FILESIZE: 20M
PHP_INI_POST_MAX_SIZE: 24M
PHP_INI_UPLOAD_TMP_DIR: /tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment