-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
53 lines (49 loc) · 1.1 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
53
services:
nginx-proxy:
image: docker.io/nginx:1.27.2-alpine
container_name: nginx-proxy
restart: unless-stopped
ports:
- 8080:80
networks:
- iproxy
environment:
- VIRTUAL_HOST=containerscrew.com
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
iproxy:
# build:
# context: .
# dockerfile: ./Dockerfile
image: docker.io/containerscrew/iproxy:v0.2.0
restart: unless-stopped
container_name: iproxy
networks:
- iproxy
environment:
- CONFIG_FILE_PATH=/app/config.toml
volumes:
- $PWD/config.toml:/app/config.toml:ro
mongodb:
image: docker.io/mongo:latest
container_name: mongo
networks:
- iproxy
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=changeme
- MONGO_INITDB_DATABASE=iproxy
volumes:
- iproxy_mongodb:/data/db
networks:
iproxy:
driver: bridge
external: false
volumes:
iproxy_mongodb:
driver: local
# driver_opts:
# type: none
# device: /mnt/ssd/iproxy
# o: bind