-
Notifications
You must be signed in to change notification settings - Fork 1
/
development.docker-compose.yml
59 lines (53 loc) · 1.08 KB
/
development.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
54
55
56
57
58
59
services:
web:
image: webdevops/php-nginx:8.0-alpine
restart: ${SERVICES_RESTART}
working_dir: /var/www
depends_on:
- db
volumes:
- ${SOURCE_DIR}/web/src:/var/www
environment:
- WEB_DOCUMENT_ROOT=/var/www/public
- WEB_DOCUMENT_INDEX=index.php
- WEB_ALIAS_DOMAIN=localhost
- APP_URL=${API_DOMAIN}
ports:
- 80:80
- 443:443
networks:
- pureftpd
ftp:
build: ftp/.
restart: ${SERVICES_RESTART}
depends_on:
- db
volumes:
- ${CONFIG_DIR}/pureftpd:/etc/pureftpd
- ${FTP_DATA_DIR}:/var/ftp-data
environment:
- LOCAL_CERT=true
ports:
- 20-21:20-21
- 30000-30099:30000-30099
networks:
- pureftpd
db:
image: mariadb:10.3
restart: ${SERVICES_RESTART}
volumes:
- ${DB_DATA_DIR}:/var/lib/mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=pureftpd
- MYSQL_USER=pure
- MYSQL_PASSWORD=pure
networks:
- pureftpd
ports:
- 3306:3306
networks:
pureftpd:
volumes:
db:
ftp: