discord-server/docker-compose.yml

75 lines
1.5 KiB
YAML
Raw Normal View History

version: '3'
services:
mariadb_devweb:
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_devweb:
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_devweb:
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_devweb:
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: