-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
46 lines (46 loc) · 930 Bytes
/
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
version: "3.9"
services:
webapp:
container_name: sql-inj-webapp
build: ./docker/franken
ports:
- "80:80"
volumes:
- ./:/app
- caddy_data:/data
- caddy_config:/config
tty: true
networks:
- network
db:
container_name: sql-inj-db
image: mariadb:10.5.8
restart: always
volumes:
- ./var/db-data:/var/lib/mysql
#- ./docker/db/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./docker/db:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: root
#MYSQL_DATABASE: app_db
TZ: Europe/Paris
networks:
- network
#PHP My Admin
# phpmyadmin:
# container_name: sql-inj-pma
# image: phpmyadmin
# restart: always
# depends_on:
# - db
# ports:
# - "8081:80"
# environment:
# PMA_HOST: db
# networks:
# - network
volumes:
caddy_data:
caddy_config:
networks:
network: