2018-03-26 19:26:05 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2018-03-27 13:46:17 +00:00
|
|
|
mariadb_devweb:
|
2018-03-26 19:26:05 +00:00
|
|
|
image: mariadb:latest
|
|
|
|
container_name: mariadb
|
|
|
|
networks:
|
|
|
|
- overlay
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
|
|
|
MYSQL_DATABASE: douscord
|
|
|
|
MYSQL_USER: douscord
|
|
|
|
MYSQL_PASSWORD: AdriPossedeUnMicroPenis
|
|
|
|
volumes:
|
|
|
|
- ./virtual/var/lib/mysql:/var/lib/mysql
|
|
|
|
expose:
|
|
|
|
- '3306'
|
|
|
|
ports:
|
|
|
|
- 3308:3306
|
|
|
|
|
2018-03-27 13:46:17 +00:00
|
|
|
tomcat_devweb:
|
2018-03-26 19:26:05 +00:00
|
|
|
image: tomcat:8.0-jre8-alpine
|
|
|
|
container_name: tomcat
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- websocket
|
|
|
|
networks:
|
|
|
|
- overlay
|
|
|
|
volumes:
|
|
|
|
- ./virtual/usr/local/tomcat/webapps:/usr/local/tomcat/webapps
|
|
|
|
- ./virtual/usr/local/tomcat/logs:/usr/local/tomcat/logs
|
|
|
|
expose:
|
|
|
|
- '8080'
|
|
|
|
links:
|
|
|
|
- mariadb
|
|
|
|
- websocket
|
|
|
|
|
2018-03-27 13:46:17 +00:00
|
|
|
websocket_devweb:
|
2018-03-26 19:26:05 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./dockfile/websocket.dockfile
|
|
|
|
container_name: websocket
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
networks:
|
|
|
|
- overlay
|
|
|
|
volumes:
|
|
|
|
- ./virtual/usr/local/websocket/:/usr/local/websocket
|
|
|
|
expose:
|
|
|
|
- '9999'
|
|
|
|
- '9998'
|
|
|
|
links:
|
|
|
|
- mariadb
|
|
|
|
|
2018-03-27 13:46:17 +00:00
|
|
|
nginx_devweb:
|
2018-03-26 19:26:05 +00:00
|
|
|
image: nginx:latest
|
|
|
|
container_name: nginx
|
|
|
|
depends_on:
|
|
|
|
- tomcat
|
|
|
|
- websocket
|
|
|
|
networks:
|
|
|
|
- overlay
|
|
|
|
volumes:
|
|
|
|
- ./virtual/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ./virtual/var/log/nginx/:/var/log/nginx
|
|
|
|
- ./virtual/vhost:/vhost
|
|
|
|
ports:
|
|
|
|
- 4242:80
|
|
|
|
links:
|
|
|
|
- tomcat
|
|
|
|
- websocket
|
|
|
|
|
|
|
|
networks:
|
|
|
|
overlay:
|