-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.19 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
version: '3.0'
volumes:
node_modules:
services:
auth:
environment:
- REDIS_STORE_HOST=redis
- REDIS_STORE_SECRET=password
- PORT=3001
- MYSQL_ROOT_PASSWORD=password
- JWT_SECRET=MyS3cR37KEY
- GITHUB_CLIENT_ID=5f297cc6ebe92a6d29b5
- GOOGLE_CLIENT_ID=425377971208-lv0phruapvm1kr9aogg4pi1d3bjci236.apps.googleusercontent.com
- GITHUB_CLIENT_SECRET=b49511fc0e5f6eee1115bb5436148b3039d8c20f
- GOOGLE_CLIENT_SECRET=oLajxb4RU8sH6vTql9RLarok
build: .
ports:
- "8080:3001"
networks:
- auth-network
volumes:
- .:/opt/app/:rw
- node_modules:/opt/app/node_modules/:rw
command:
sh -c '
if test -d node_modules;
then
echo rm -rf node_modules;
cp -a /tmp/node_modules /opt/app;
fi &&
DEBUG=connect-redis npm start '
redis:
networks:
- auth-network
image: redis:alpine
ports:
- "6379:6379"
mysql:
environment:
- MYSQL_ROOT_PASSWORD=password
networks:
- auth-network
image: mysql
ports:
- "3306:3306"
networks:
auth-network:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/24