-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.08 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
services:
web:
build:
context: ./
dockerfile: provisioning/Dockerfile_web
volumes:
- ./:/var/www/html/
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
expose:
- 21
networks:
- testnet
privileged: true
mysql:
image: mariadb:latest
expose:
- 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: