-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.alt.yml
74 lines (68 loc) · 1.67 KB
/
docker-compose.alt.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.9"
# Includes Nginx Proxy Manager, Mongodb and Mongo Express
services:
discord-bot:
container_name: Bot
image: bot
build:
context: .
dockerfile: Dockerfile_bot
restart: always
env_file:
- .env
networks:
- Starguard
server:
container_name: Server
image: server
ports:
- ${SERVER_PORT}:5000
build:
context: .
dockerfile: Dockerfile_server
restart: always
env_file:
- .env
networks:
- Starguard
mongodb:
container_name: mongo
image: mongo:4.4.18 # for compatibility with older hardware, feel free to use latest
# uncomment the 2 following lines to make accessible from outside docker
# ports:
# - ${MONGO_PORT}:27017
volumes:
- ./server/mongo-data:/data/db
command: mongod --noauth
restart: always
networks:
- Starguard
mongo-express:
container_name: mongo-express
image: mongo-express
ports:
- ${MONGO_EXPRESS_PORT}:8081
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_MONGODB_ENABLE_ADMIN: "true"
ME_CONFIG_BASICAUTH_USERNAME: ${MONGO_EXPRESS_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${MONGO_EXPRESS_PASSWORD}
restart: always
networks:
- Starguard
nginx-proxy-manager:
container_name: nginx-proxy-manager
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '81:81' # Admin Web Port
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
networks:
- Starguard
networks:
Starguard: