Skip to content

Commit d7641f7

Browse files
First commit
1 parent e227c83 commit d7641f7

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ENV CHUNK_SIZE 0
2424
ENV PARALLEL_UPLOADS 3
2525

2626
RUN apt-get update -yqq && \
27-
apt-get install -y ca-certificates openssh-client mysql-client postgresql-client lftp && \
27+
apt-get install -y ca-certificates openssh-client default-mysql-client postgresql-client lftp && \
2828
mkdir -p /backups
2929

3030
ADD etc/lftp.conf /etc/lftp.conf

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ test-bash: build
3131
@docker compose run --rm crontab bash
3232

3333
test-log: build
34-
@docker compose up --force-recreate crontab
35-
@docker compose logs -f crontab
34+
@docker compose up --force-recreate backup
35+
@docker compose logs -f backup

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ services:
1010

1111
mysql:
1212
image: mysql:8
13+
environment:
14+
- MYSQL_DATABASE=mysql
15+
- MYSQL_ROOT_PASSWORD=secret
1316
volumes:
1417
- ./tmp/mysql:/var/lib/mysql
1518

19+
ftp:
20+
image: garethflowers/ftp-server
21+
environment:
22+
- FTP_USER=user
23+
- FTP_PASS=123
24+
ports:
25+
- '20-21:20-21/tcp'
26+
- '40000-40009:40000-40009/tcp'
27+
volumes:
28+
- ./tmp/ftp:/home/user

0 commit comments

Comments
 (0)