Created
July 12, 2021 20:10
-
-
Save FelipeGangrel/fdf983399e975f9904fbd28512133cce to your computer and use it in GitHub Desktop.
Useful Docker Compose Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For mysql use root/root as user/password | |
# For ftp use admin/123 as user/password | |
version: "3.3" | |
services: | |
db: | |
image: mysql | |
container_name: mysql | |
command: --default-authentication-plugin=mysql_native_password | |
restart: always | |
ports: | |
- 3306:3306 | |
volumes: | |
- ./mysql:/var/lib/mysql:Z | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
TZ: America/Sao_Paulo | |
ftpd_server: | |
image: stilliard/pure-ftpd | |
container_name: pure-ftpd | |
restart: always | |
ports: | |
- "21:21" | |
- "30000-30009:30000-30009" | |
volumes: | |
- ./ftp/data:/home/admin:Z | |
- ./ftp/passwd:/etc/pure-ftpd/passwd:Z | |
environment: | |
PUBLICHOST: 127.0.0.1 | |
FTP_USER_NAME: admin | |
FTP_USER_PASS: 123 | |
FTP_USER_HOME: /home/admin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment