-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
77 lines (69 loc) · 1.55 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# stack
#! env hide
version: "3.8"
services:
nginx:
image: nginx_image
restart: always
ports:
- 80:80
networks:
- core_network
volumes:
# - ./my_local_app:/srv/app_server
- nginx_log_volume:/var/log/nginx
depends_on:
- portainer
- testapp
- mongoadmin
testapp:
image: testapp_image
restart: always
networks:
- core_network
environment:
MONGO_URL: "mongodb://admin:1205@mongo:27017"
NODE_ENV: "prod"
depends_on:
- mongo
mongo:
image: mongo
volumes:
- mongodb_volume:/data/db
ports:
- "27017-27019:27017-27019"
networks:
- core_network
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: "1205"
restart: always
mongoadmin:
image: mongo-express
networks:
- core_network
environment:
ME_CONFIG_MONGODB_ENABLE_ADMIN: "true"
ME_CONFIG_MONGODB_URL: "mongodb://admin:1205@mongo:27017"
ME_CONFIG_OPTIONS_EDITORTHEMEL: "material"
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: me1205
ME_CONFIG_SITE_COOKIESECRET: cookiesecret
ME_CONFIG_SITE_SESSIONSECRET: sessionsecret
depends_on:
- mongo
restart: always
portainer:
image: portainer/portainer-ce:alpine
restart: always
networks:
- core_network
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_volume:/data
volumes:
nginx_log_volume:
mongodb_volume:
portainer_volume:
networks:
core_network: