-
Notifications
You must be signed in to change notification settings - Fork 49
/
docker-compose.yaml
64 lines (58 loc) · 1.5 KB
/
docker-compose.yaml
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
version: '3.8'
services:
portainer:
image: portainer/portainer-ce:alpine
restart: always
container_name: portainer
ports:
- '9000:9000'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainerdata:/data
networks:
- intranet
mongo:
image: mongo
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${LOCAL_DB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${LOCAL_DB_PASSWORD}
ports:
- '27017:27017'
volumes:
- database:/data/db
networks:
- intranet
mongo-express:
image: mongo-express
container_name: mongo-express
restart: always
ports:
- '8081:8081'
environment:
ME_CONFIG_BASICAUTH_USERNAME: ${MONGO_EXPRESS_USER}
ME_CONFIG_BASICAUTH_PASSWORD: ${MONGO_EXPRESS_KEY}
ME_CONFIG_MONGODB_ADMINUSERNAME: ${LOCAL_DB_USER}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${LOCAL_DB_PASSWORD}
depends_on:
- mongo
networks:
- intranet
server:
container_name: ListBotContainer
build: .
env_file:
- .env
depends_on:
- mongo
ports:
- '3000:3000'
volumes:
- ./.env:/listbot/src/config/.env
networks:
- intranet
networks:
intranet:
volumes:
database:
portainerdata: