forked from SaturnsVoid/Project-Whis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
35 lines (35 loc) · 891 Bytes
/
docker-compose.yaml
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
version: '3.3'
services:
c2:
image: whis:c2
build: ./C2
ports:
- '8080:8080'
- '5555:5555'
- '53899:53899'
command: ["wait-for-it", "-w", "db:3306", "-s", "-t", "600000000", "--", "/C2/bin/C2"]
depends_on:
- db
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: 'whistesting'
# So you don't have to use root, but you can if you like
MYSQL_USER: 'whistesting'
# You can use whatever password you like
MYSQL_PASSWORD: 'whistesting'
# Password for root access
MYSQL_ROOT_PASSWORD: 'whistesting'
ports:
# <Port exposed> : < MySQL Port running inside container>
- '3306:3306'
expose:
# Opens port 3306 on the container
- '3306'
# Where our data will be persisted
volumes:
- my-db:/var/lib/mysql
# Names our volume
volumes:
my-db: