Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

core23/docker-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Docker Container

Continuous Integration

Docker setup for symfony applications using nginx, php-fpm and mysql. There is also an ELK stack for accessing the logs.

Usage

version: '3.4'

services:
    php:
        image: core23/symfony-php
        volumes:
            - app-data:/var/www/symfony
        links:
            - mysql:mysqldb

    nginx:
        image: core23/symfony-nginx
        ports:
            - 80:80
            - 443:443
        links:
            - php
        volumes:
            - app-data:/var/www/symfony
            - nginx-log:/var/log/nginx
        environment:
            NGINX_HOST: localhost

    mysql:
        image: mysql:5
        ports:
            - 3306:3306
        volumes:
            - db-data:/var/lib/mysql
        environment:
            MYSQL_ROOT_PASSWORD: root-password
            MYSQL_DATABASE: symfony
            MYSQL_USER: symfony
            MYSQL_PASSWORD: super-secret

    elk:
        build: elk
        ports:
            - 81:5601
        volumes:
            - app-data:/var/www/symfony:ro
            - nginx-log:/var/log/nginx:ro

volumes:
    db-data:
    app-data:

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •