-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 1.05 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
version: "3.7"
networks:
example:
services:
proxy:
image: nginx:1.25
networks:
- example
ports:
- "80:80"
volumes:
- ./nginx-reverse-proxy-config/etc/nginx/sites-available/:/etc/nginx/conf.d:ro # sites available, sites enabled
- ./nginx-reverse-proxy-config/etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro # main config
- ./nginx-reverse-proxy-config/etc/nginx/nginxconfig.io:/etc/nginx/nginxconfig.io # additional config shared
mem_limit: 2g
restart: always
default-target:
image: nginx:1.25
networks:
- example
expose:
- 80
volumes:
- ./static-content/default-target:/usr/share/nginx/html:ro
restart: always
target2:
image: nginx:1.25
networks:
- example
expose:
- 80
volumes:
- ./static-content/target2:/usr/share/nginx/html:ro
restart: always
target3:
image: nginx:1.25
networks:
- example
expose:
- 80
volumes:
- ./static-content/target3:/usr/share/nginx/html:ro
restart: always