-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (50 loc) · 964 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
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
lavaboard:
build: ./lavaboard
container_name: lavaboard
ports:
- 80:80
restart: always
environment:
- 0.0.0.0
server:
build: ./server
container_name: server
ports:
- 8080:8080
restart: always
environment:
- 0.0.0.0
db:
image: mariadb
container_name: maria
restart: always
environment:
MYSQL_USER: thib
MYSQL_DATABASE: db
MYSQL_ROOT_PASSWORD: qwerty
MYSQL_PASSWORD: thib
volumes:
- mariadata:/var/lib/mysql
- ./db.sql:/docker-entrypoint-initdb.d/db.sql
ports:
- "3306:3306"
phpmyadmin:
container_name: myadmin
image: phpmyadmin/phpmyadmin
restart: always
depends_on:
- db
links:
- db:db
ports:
- 8081:80
environment:
MYSQL_USER: thib
MYSQL_PASSWORD: thib
MYSQL_ROOT_PASSWORD: qwerty
volumes:
- /sessions
volumes:
mariadata: