-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.28 KB
/
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
49
50
51
52
53
version: '3.9'
services:
app:
image: anyxel/pg-sql-injections:latest
container_name: anyxel_sqli_app
build:
context: .
dockerfile: ./.docker/php-apache.dockerfile
environment:
DB_HOST: '${DB_HOST}'
DB_PORT: '${DB_PORT}'
DB_DATABASE: '${DB_DATABASE}'
DB_USERNAME: '${DB_USERNAME}'
DB_PASSWORD: '${DB_PASSWORD}'
volumes:
- ./app:/var/www/html:delegated
- ./cron/cron.log:/var/log/cron.log:delegated
# networks:
# - anyxel
ports:
- 80:80
mysql:
image: 'yobasystems/alpine-mariadb'
container_name: anyxel_db
restart: unless-stopped
ports:
- '${DB_PORT}:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- 'anyxel_sqli_dbdata:/var/lib/mysql'
# networks:
# - anyxel
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}" ]
retries: 3
timeout: 5s
# networks
networks:
anyxel:
driver: bridge
# volumes
volumes:
anyxel_sqli_dbdata:
driver: local