-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yaml
75 lines (67 loc) · 2.03 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "3"
volumes:
mysql_data: {}
mariadb_data: {}
services:
# Primary services to use with this course
websoft: &websoft
#image: dbwebb/courserepo:databas
image: dbwebb/courserepo:cli
volumes:
- ".:/home/dbwebb/repo"
- "/home/dbwebb/repo/bin"
- "/home/dbwebb/repo/build"
- "/home/dbwebb/repo/node_modules"
- "/home/dbwebb/repo/vendor"
- "./example/docker/mysql_my.cnf:/home/dbwebb/.my.cnf"
# Use this to expose node and dotnet servers
cli:
<<: *websoft
#image: dbwebb/courserepo:cli
# image: dbwebb/courserepo:databas
# volumes:
# - ".:/home/dbwebb/repo"
# - "./example/sql/inspect/my.cnf:/home/dbwebb/.my.cnf"
ports:
- "1337:1337"
- "3000:3000"
- "5000:5000"
server:
<<: *websoft
image: dbwebb/courserepo
# ports:
# - "8888:80"
apache:
<<: *websoft
image: dbwebb/courserepo:apache
ports:
- "8888:80"
mariadb:
container_name: mariadb_websoft
image: mariadb/server:latest
restart: always
ports:
- "13306:3306"
environment:
MARIADB_ROOT_PASSWORD: pass
volumes:
- mariadb_data:/var/lib/mysql
- .example/sql.d/mariadb:/docker-entrypoint-initdb.d
- ./example/docker/mariadb_my.cnf:/root/.my.cnf
mysql:
container_name: mysql_websoft
image: mysql:latest
restart: always
command: --default-authentication-plugin=mysql_native_password
ports:
- "13306:3306"
environment:
MYSQL_ROOT_PASSWORD: pass
volumes:
- mysql_data:/var/lib/mysql
- ./example/sql.d/mysql:/docker-entrypoint-initdb.d
- ./example/docker/mysql_my.cnf:/root/.my.cnf
linux:
container_name: linux_websoft
# image: alpine:latest
image: debian:stretch-slim