-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (59 loc) · 1.46 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
version: '3'
services:
cnode:
# build:
# context: .
# dockerfile: Dockerfile
# args:
# - env=value
image: 58fe/58fe.com:latest
environment:
- NODE_ENV=production
- EGG_SERVER_ENV=prod
- EGG_REDIS_DB=0
- EGG_REDIS_HOST=redis
- EGG_REDIS_PORT=6379
- EGG_REDIS_PASSWORD=egg_cnode
- EGG_MONGODB_URL=mongodb://egg_cnode:egg_cnode@mongodb:27017/egg_cnode
- EGG_MINI_ASSETS=true
- EGG_PASSPORT_GITHUB_CLIENT_ID=bcb67bdf9ab12653b478
- EGG_PASSPORT_GITHUB_CLIENT_SECRET=c58126314ee373eb91a010cd6e98b2b76c9ec48e
# - EGG_SITE_STATIC_HOST=${EGG_SITE_STATIC_HOST}
- EGG_ALINODE_APPID=appid
- EGG_ALINODE_SECRET=secret
depends_on:
- redis
- mongodb
networks:
- docker_cnode
ports:
- 7001:7001
redis:
image: redis:3.2-alpine
command: redis-server --appendonly yes --requirepass egg_cnode
volumes:
- egg-redis:/data
networks:
- docker_cnode
# ports:
# - 6379:6379
mongodb:
image: mongo:3.2
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=mongodb
- MONGO_INITDB_DATABASE=egg_cnode
volumes:
- egg-mongo:/data/db
- ./init.d/mongo:/docker-entrypoint-initdb.d
networks:
- docker_cnode
# ports:
# - 27017:27017
volumes:
egg-mongo:
egg-redis:
networks:
docker_cnode:
driver: bridge