-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
42 lines (42 loc) · 908 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.8'
services:
api:
container_name: api-container
restart: always
build: ./backend
ports:
- "5000:5000"
depends_on:
- mysql_db
links:
- mysql_db
networks:
- all
webapp:
container_name: webapp-container
restart: always
build: ./website
ports:
- "80:80"
depends_on:
- api
links:
- api
networks:
- all
mysql_db:
container_name: mysql-container
image: mysql:latest
restart: always
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: 'minecraftdiscoverytool'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'my-secret-password' # Please change this and also change it in /backend/Dockerfile
MYSQL_ROOT_PASSWORD: 'my-secret-password' # Please change this and also change it in /backend/Dockerfile
networks:
- all
networks:
all:
driver: bridge