-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1002 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
services:
rwtf_nginx:
image: nginx:mainline-alpine
init: true
restart: unless-stopped
volumes:
- webapp-content:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- screenshot-data:/screenshot
depends_on:
- server
server:
build: server
init: true
restart: unless-stopped
depends_on:
- mariadb
environment:
- TZ=Europe/Berlin
volumes:
- ./study_files:/tmp/study_files
mariadb:
image: mariadb
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=mydatabase
- MYSQL_USER=myuser
- MYSQL_PASSWORD=mypassword
- TZ=Europe/Berlin
volumes:
- ./mariadb-data:/var/lib/mysql
screenshot:
build: screenshot
init: true
restart: unless-stopped
depends_on:
- rwtf_nginx
environment:
- TZ=Europe/Berlin
volumes:
- screenshot-data:/data
volumes:
webapp-content:
screenshot-data: