-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
52 lines (48 loc) · 1.11 KB
/
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
51
52
services:
nginx-proxy:
image: docker.io/nginx:1.27.2-alpine
container_name: nginx-proxy
restart: unless-stopped
ports:
- 80:80
networks:
- iproxy
environment:
- VIRTUAL_HOST=/run/secrets/VIRTUAL_HOST
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
cap_add:
- NET_BIND_SERVICE
iproxy:
build:
context: .
dockerfile: ./Dockerfile
restart: unless-stopped
container_name: iproxy
networks:
- iproxy
mongodb:
image: docker.io/mongo:latest
container_name: mongo
networks:
- iproxy
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=/run/secrets/MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD=/run/secrets/MONGO_INITDB_ROOT_PASSWORD
- MONGO_INITDB_DATABASE=/run/secrets/MONGO_INITDB_DATABASE
volumes:
- /mnt/ssd/iproxy:/data/db
networks:
iproxy:
driver: bridge
external: false
secrets:
MONGO_INITDB_DATABASE:
file: .env
MONGO_INITDB_ROOT_USERNAME:
file: .env
MONGO_INITDB_ROOT_PASSWORD:
file: .env
VIRTUAL_HOST:
file: .env