discord-server/docker-compose.yml

75 lines
1.5 KiB
YAML
Raw Normal View History

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