-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yaml
82 lines (68 loc) · 1.95 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
76
77
78
79
80
81
82
version: "3"
services:
# Primary services to use with this course
htmlphp: &htmlphp
image: dbwebb/courserepo:htmlphp
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:
<<: *htmlphp
server:
<<: *htmlphp
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"
# Anax images to test various PHP versions
# PHP 7.4
php74: &php74
image: anax/dev:php74-cli
volumes:
- .:/home/anax/repo
apache74: &apache74
image: anax/dev:php74-apache
ports:
- "18080:80"
volumes:
- .:/app
- ./example/docker/site_default.conf:/etc/apache2/sites-enabled/000-default.conf
php:
<<: *php74
apache:
<<: *apache74
# PHP 7.3
php73:
image: anax/dev:php73-cli
volumes:
- .:/home/anax/repo
apache73:
image: anax/dev:php73-apache
ports:
- "18080:80"
volumes:
- .:/app
- ./example/docker/site_default.conf:/etc/apache2/sites-enabled/000-default.conf
# PHP 7.2
php72:
image: anax/dev:php72-cli
volumes:
- .:/home/anax/repo
apache72:
image: anax/dev:php72-apache
ports:
- "18080:80"
volumes:
- .:/app
- ./example/docker/site_default.conf:/etc/apache2/sites-enabled/000-default.conf