-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (50 loc) · 1.14 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
45
46
47
48
49
50
version: "3.3"
services:
apt-repo:
build: .
environment:
- PPR_BASE
volumes:
- type: bind
source: ${PPR_BASE:?Set the variable PPR_BASE}
target: /home/pacstall/ppr-base
logging:
options:
max-size: 10m
restart: on-failure:5
web:
image: nginx:stable-alpine
environment:
- PPR_BASE
- NGINX_PORT=80
depends_on:
- apt-repo
volumes:
- ${PPR_BASE}:/usr/share/nginx/html:ro
- ./nginx-conf/nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
logging:
options:
max-size: 10m
restart: on-failure:5
sftp:
image: atmoz/sftp:alpine
environment:
- PPR_BASE
depends_on:
- apt-repo
env_file:
- .env
volumes:
- ${PPR_BASE}/pool:/home/sftp-pacstall/upload
- ${PWD}/sftp-keys/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key
- ${PWD}/sftp-keys/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key
- ${PWD}/sftp-keys/share:/home/foo/share
ports:
- "420:22"
command: sftp-pacstall:${SFTP_PASS}:::upload
logging:
options:
max-size: 10m
restart: on-failure:5