-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (46 loc) · 1.16 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
48 lines (46 loc) · 1.16 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
version: "3.8"
services:
php:
build:
context: ./php-fpm
labels:
- "de.fh-bielefeld.description=PHP fpm container"
- "de.fh-bielefeld.department=Datenverarbeitungszentrale"
- "de.fh-bielefeld.maintainer=daniel.kappe@fh-bielefeld.de"
logging:
driver: "journald"
options:
tag: "{{.ImageName}}/{{.Name}}/{{.ID}}"
restart: unless-stopped
volumes:
- type: bind
source: ./html
target: /var/www/html
ports:
- target: 9000
published: 9000
protocol: tcp
mode: host
apache:
build:
context: ./apache
labels:
- "de.fh-bielefeld.description=Apache Container to serve a PHP fpm"
- "de.fh-bielefeld.department=Datenverarbeitungszentrale"
- "de.fh-bielefeld.maintainer=daniel.kappe@fh-bielefeld.de"
logging:
driver: "journald"
options:
tag: "{{.ImageName}}/{{.Name}}/{{.ID}}"
restart: unless-stopped
depends_on:
- php
ports:
- target: 80
published: 8080
protocol: tcp
mode: host
volumes:
- type: bind
source: ./html
target: /usr/local/apache2/htdocs