-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (81 loc) · 2.06 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
version: '3'
services:
mongodb-fabrica:
image: bitnami/mongodb:latest
networks:
- mongodb_network
volumes:
- mongodb_data:/bitnami
ports:
- "27017:27017"
environment:
MONGODB_USERNAME: ${MONGODB_USERNAME}
MONGODB_PASSWORD: ${MONGODB_PASSWORD}
MONGODB_DATABASE: ${MONGODB_DATABASE}
admin-api:
image: "node:10-slim"
networks:
- base_network
- mongodb_network
ports:
- "3001:3001"
working_dir: /app
command: sh -c "yarn && yarn dev"
depends_on:
- mongodb-fabrica
volumes:
- ./admin-api:/app
environment:
NODE_ENV: development
MONGO_URI: "mongodb://${MONGODB_USERNAME}:${MONGODB_PASSWORD}@${MONGODB_ADDRESS}:27017/${MONGODB_DATABASE}"
SECRET_HASH: ${SECRET_HASH}
SECRET_REFRESH_HASH: ${SECRET_REFRESH_HASH}
EMAIL_USER: ${EMAIL_USER}
EMAIL_PASSWORD: ${EMAIL_PASSWORD}
EMAIL_HOST: ${EMAIL_HOST}
EMAIL_PORT: ${EMAIL_PORT}
GOOGLE_APPLICATION_CREDENTIALS: ${GOOGLE_APPLICATION_CREDENTIALS}
GOOGLE_PROJECT_ID: ${GOOGLE_PROJECT_ID}
GOOGLE_STORAGE_BUCKET: ${GOOGLE_STORAGE_BUCKET}
admin-client:
image: "node:10-slim"
networks:
- base_network
ports:
- "3000:3000"
command: sh -c "yarn && yarn dev"
working_dir: /app
volumes:
- ./admin-client:/app
environment:
NODE_ENV: development
HOST: 0.0.0.0
API_URL: ${ADMIN_API_URL}
TOKEN: ${TOKEN}
REFRESH_TOKEN: ${REFRESH_TOKEN}
SECRET_LOCAL_KEY: ${SECRET_LOCAL_KEY}
user-client:
image: "node:10-slim"
networks:
- base_network
ports:
- "3001:3000"
command: sh -c "yarn && yarn dev"
working_dir: /app
volumes:
- ./user-client:/app
environment:
NODE_ENV: development
HOST: 0.0.0.0
API_URL: ${ADMIN_API_URL}
TOKEN: ${TOKEN}
REFRESH_TOKEN: ${REFRESH_TOKEN}
SECRET_LOCAL_KEY: ${SECRET_LOCAL_KEY}
networks:
base_network:
mongodb_network:
volumes:
mongodb_data:
admin-client:
admin-api:
user-client: