-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
44 lines (42 loc) · 1.16 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
version: "3"
services:
web:
image: davidgoodwin/debian-buster-php74:latest
volumes:
- ./provisioning/apache-site.conf:/etc/apache2/sites-enabled/000-default.conf
- ./:/srv/pureftp-admin
ports:
- "08:80"
networks:
- testnet
depends_on:
- mysql
environment:
- DATABASE_DSN=mysql:host=mysql;dbname=pureftp
- DATABASE_USER=username
- DATABASE_PASS=password
ftp:
build:
context: ./
dockerfile: provisioning/Dockerfile_pureftp
ports:
- "21:21"
networks:
- testnet
privileged: true
mysql:
image: mariadb:latest
ports:
- "3306:3306"
networks:
- testnet
environment:
MYSQL_INITDB_SKIP_TZINFO: non-empty
MYSQL_ROOT_PASSWORD: test
MYSQL_USER: username
MYSQL_PASSWORD: password
MYSQL_DATABASE: pureftp
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/pureftp-schema.sql
networks:
testnet: