75 lines
1.4 KiB
YAML
75 lines
1.4 KiB
YAML
|
version: '3'
|
||
|
|
||
|
services:
|
||
|
|
||
|
mariadb:
|
||
|
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
|
||
|
|
||
|
tomcat:
|
||
|
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
|
||
|
|
||
|
websocket:
|
||
|
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
|
||
|
|
||
|
nginx:
|
||
|
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:
|