Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- ### Code Container #######################################################################################
- applications:
- container_name: application
- image: registry.gitlab.lc:5000/develop/ed/develop.sources:latest
- volumes:
- - static:/var/www/static
- - /var/www/staticus:/var/www/staticus
- ### PHP-FPM Container ###################################################################################
- php-fpm:
- container_name: php-fpm
- image: registry.gitlab.lc:5000/develop/ed/php-fpm-ed-sq:latest
- volumes_from:
- - applications
- expose:
- - "9000"
- ### Nginx Container #####################################################################################
- nginx:
- container_name: nginx
- image: registry.gitlab.lc:5000/develop/ed/nginx-ed-sq:latest
- volumes_from:
- - applications
- depends_on:
- - "websocket"
- - "php-fpm"
- ports:
- - "80:80"
- - "443:443"
- ### Redis Container ####################################################################################
- redis:
- container_name: redis
- image: registry.gitlab.lc:5000/develop/ed/redis-ed-sq:latest
- volumes:
- - redis:/data
- ports:
- - "6379:6379"
- ### Memcached Container ################################################################################
- memcached:
- container_name: memcached
- image: registry.gitlab.lc:5000/develop/ed/memcached-ed-sq:latest
- volumes:
- - memcached:/var/lib/memcached
- ports:
- - "11211:11211"
- ### Staticus Container ################################################################################
- staticus:
- container_name: staticus
- image: registry.gitlab.lc:5000/develop/ed/staticus-ed-sq:latest
- depends_on:
- - "php-fpm"
- volumes_from:
- - applications
- ports:
- - "8083:8083"
- networks:
- default:
- ipv4_address: 172.25.0.10
- ### Websocket Container ################################################################################
- websocket:
- container_name: websocket
- restart: always
- image: registry.gitlab.lc:5000/develop/ed/websocket-ed-sq:latest
- depends_on:
- - "redis"
- - "php-fpm"
- environment:
- - WS_PORT=${WS_PORT}
- - REDIS_HOST=${REDIS_HOST}
- - REDIS_PORT=${REDIS_PORT}
- - REDIS_PASS=${REDIS_PASS}
- ports:
- - "${WS_PORT}:${WS_PORT}"
- ### Volumes Setup ######################################################################################
- volumes:
- memcached:
- driver: "local"
- redis:
- driver: "local"
- static:
- driver: "local"
- driver_opts:
- type: nfs
- o: addr=192.168.0.218,rw
- device: ":/srv/static"
- ### Networks Setup #####################################################################################
- networks:
- default:
- driver: bridge
- ipam:
- config:
- - subnet: 172.25.0.0/24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement