forked from dbwebb-se/webtec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
110 lines (95 loc) · 3.03 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
110 lines (95 loc) · 3.03 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: "3"
volumes:
mysql_data: {}
mariadb_data: {}
services:
# Primary services to use with this course
webtec: &webtec
image: dbwebb/courserepo:webtec
#image: dbwebb/courserepo
volumes:
- ".:/home/dbwebb/repo"
- "/home/dbwebb/repo/bin"
- "/home/dbwebb/repo/build"
- "/home/dbwebb/repo/node_modules"
- "/home/dbwebb/repo/vendor"
- "./example/sql/inspect/my.cnf:/home/dbwebb/.my.cnf"
cli:
<<: *webtec
server:
<<: *webtec
#volumes:
#- ./example/docker/site_default.conf:/etc/apache2/sites-enabled/000-default.conf
ports:
- "18080:80"
courserepo:
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/sql/inspect/my.cnf:/home/dbwebb/.my.cnf"
# Add support for mysql and mariadb
mariadb:
container_name: mariadb
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/sql/inspect/mariadb_my.cnf:/root/.my.cnf
mysql:
container_name: mysql
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/sql/inspect/mysql_my.cnf:/root/.my.cnf
# Anax images to test various PHP versions
php81:
image: anax/dev:php81-cli
volumes:
- .:/home/anax/repo
php81-apache:
image: anax/dev:php81-apache
ports:
- "18081:80"
volumes:
- .:/app
#- ./apache.conf:/etc/apache2/sites-enabled/000-default.conf
- ./example/docker/site_default.conf:/etc/apache2/sites-enabled/000-default.conf
php:
image: anax/dev:php73-cli
volumes:
- .:/home/anax/repo
apache:
image: anax/dev:php73-apache
ports:
- "18080:80"
volumes:
- .:/app
- ./example/docker/site_default.conf:/etc/apache2/sites-enabled/000-default.conf
php80:
image: anax/dev:php80-cli
volumes:
- .:/home/anax/repo
php80-apache:
image: anax/dev:php80-apache
ports:
- "18085:80"
volumes:
- .:/app
#- ./apache.conf:/etc/apache2/sites-enabled/000-default.conf
- ./example/docker/site_default.conf:/etc/apache2/sites-enabled/000-default.conf