2018-03-26 19:26:05 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2018-03-27 13:48:03 +00:00
|
|
|
mariadb:
|
2018-03-26 19:26:05 +00:00
|
|
|
image: mariadb:latest
|
2018-03-27 13:48:03 +00:00
|
|
|
container_name: mariadb_devweb
|
2018-03-26 19:26:05 +00:00
|
|
|
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:48:03 +00:00
|
|
|
tomcat:
|
2018-03-26 19:26:05 +00:00
|
|
|
image: tomcat:8.0-jre8-alpine
|
2018-03-27 13:48:03 +00:00
|
|
|
container_name: tomcat_devweb
|
2018-03-26 19:26:05 +00:00
|
|
|
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:48:03 +00:00
|
|
|
websocket:
|
2018-03-26 19:26:05 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./dockfile/websocket.dockfile
|
2018-03-27 13:48:03 +00:00
|
|
|
container_name: websocket_devweb
|
2018-03-26 19:26:05 +00:00
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
networks:
|
|
|
|
- overlay
|
|
|
|
volumes:
|
|
|
|
- ./virtual/usr/local/websocket/:/usr/local/websocket
|
|
|
|
expose:
|
2018-03-27 13:48:03 +00:00
|
|
|
- '9999'
|
2018-03-26 19:26:05 +00:00
|
|
|
- '9998'
|
|
|
|
links:
|
|
|
|
- mariadb
|
|
|
|
|
2018-03-27 13:48:03 +00:00
|
|
|
nginx:
|
2018-03-26 19:26:05 +00:00
|
|
|
image: nginx:latest
|
2018-03-27 13:48:03 +00:00
|
|
|
container_name: nginx_devweb
|
2018-03-26 19:26:05 +00:00
|
|
|
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:
|