-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
107 lines (102 loc) · 2.82 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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# NAME: docker-compose.yml
# AUTH: Ryan McCartney <[email protected]>
# DATE: 04/03/2021
# DESC: Defines Docker services for Bug
version: "3.8"
networks:
bug:
name: bug
driver: bridge
services:
app:
container_name: bug
build: "./src"
restart: always
user: root
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./src:/home/node/bug
environment:
MODULE_PORT: 3200
MODULE_HOME: /home/node/module
WATCHTOWER_HTTP_API_TOKEN: bugupdatetoken
WATCHTOWER_CONTAINER: bug-watchtower
MONGO_CONTAINER: bug-mongo
DOCKER_NETWORK_NAME: bug
BUG_CONTAINER: bug
CLEANUP: 2
BUG_PORT: 3101
BUG_HOST: "127.0.0.1"
BUG_LOG_FOLDER: logs
BUG_LOG_NAME: bug
BUG_REGISTRY_FQDN: ghcr.io/bbc
BUG_UPDATE_CHECK: "false"
PORT: 3000
NODE_ENV: development
SESSION_SECRET: aSecretForYourSessions
depends_on:
- mongo
networks:
- bug
ports:
- 3000:3000
- 3101:3101
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
mongo:
image: mongo:latest
restart: unless-stopped
container_name: bug-mongo
networks:
- bug
ports:
- 27017:27017
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
watchtower:
container_name: bug-watchtower
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- bug
ports:
- 8080:8080
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
environment:
WATCHTOWER_DEBUG: "true"
WATCHTOWER_HTTP_API_UPDATE: "true"
WATCHTOWER_HTTP_API_TOKEN: bugupdatetoken
WATCHTOWER_LABEL_ENABLE: "true"
mongo-web:
image: mongo-express
container_name: bug-mongo-express
restart: unless-stopped
ports:
- 3202:8081
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
environment:
ME_CONFIG_OPTIONS_EDITORTHEME: "ambiance"
ME_CONFIG_MONGODB_SERVER: "bug-mongo"
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: bugdev
hostname: mongo-web
networks:
- bug
depends_on:
- mongo