-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 989 Bytes
/
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
version: '2.4'
x-limits: &limits
pids_limit: 1024
cpu_shares: 256
mem_limit: 512m
logging:
options:
max-size: 10m
max-file: '3'
services:
auth:
<<: *limits
build: ./auth
image: naumachia/recipe.auth
env_file: chal.env
expose:
- "4505"
networks:
default:
ipv4_address: 172.30.0.2
restart: unless-stopped
ftp:
<<: *limits
build: ./ftp
image: naumachia/recipe.ftp
env_file: chal.env
environment:
AUTH_ADDR: auth
AUTH_PORT: 4505
cap_add:
- NET_BIND_SERVICE
expose:
- "21"
networks:
default:
ipv4_address: 172.30.0.3
restart: unless-stopped
networks:
default:
driver: l2bridge
ipam:
driver: static
config:
- subnet: 172.30.0.0/28