forked from Clovis-team/clovis-open-code-extracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
132 lines (94 loc) · 3.04 KB
/
docker-compose.dev.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: '2'
services:
maildev:
image: djfarrelly/maildev
ports:
- "${CLOVIS_MAILDEV_PORT}:80"
documentation:
build:
context: .
dockerfile: documentation/Dockerfile.dev
volumes:
- ./documentation/public:/usr/src/documentation/public:ro
command: yarn run start
ports:
- "${CLOVIS_DOC_PORT}:3000"
links:
- api-server:api-server
home-server:
environment:
CLOVIS_APP_URL: "${LOCALHOST_ADDRESS}:${CLOVIS_CLIENT_PORT}"
CLOVIS_SMTP_HOST: "maildev"
CLOVIS_SMTP_PORT: "25"
CLOVIS_GOOGLE_ANALYTICS_ID: "${CLOVIS_GOOGLE_ANALYTICS_ID}"
build:
context: .
dockerfile: home-server/Dockerfile.dev
volumes:
- ./home-server/src:/usr/src/home-server/src:ro
- ./home-server/scripts:/usr/src/home-server/scripts:ro
- ./home/src:/usr/src/home/src:ro
- ./home/img:/usr/src/home/img:ro
- ./home/gulpfile.js:/usr/src/home/gulpfile.js:ro
- ./email/src:/usr/src/email/src:ro
command: ./scripts/entrypoint.dev.sh
ports:
- "${CLOVIS_HOME_PORT}:3000"
links:
- mongo:mongo
- maildev:maildev
tty: true
client-server:
environment:
# through Docker network only, not accessible from the host
CLOVIS_PRIVATE_API_URL: 'http://api-server:3000'
# accessible from the host's browser
CLOVIS_PUBLIC_API_URL: "${LOCALHOST_ADDRESS}:${CLOVIS_API_PORT}"
CLOVIS_HOME_URL: "${LOCALHOST_ADDRESS}:${CLOVIS_HOME_PORT}"
CLOVIS_CLIENT_URL: "${LOCALHOST_ADDRESS}:${CLOVIS_CLIENT_PORT}"
links:
- api-server:api-server
build:
context: .
dockerfile: ./client-server/Dockerfile.dev
volumes:
- ./client-server/src:/usr/src/client-server/src:ro
- ./client/static:/usr/src/client/static:ro
- ./client/src:/usr/src/client/src:ro
- ./client/webpack.config.js:/usr/src/client/webpack.config.js:ro
command: /usr/src/client-server/scripts/entrypoint.dev.sh
ports:
- "${CLOVIS_CLIENT_PORT}:3000"
tty: true
api-server:
environment:
CLOVIS_CLIENT_URL: "${LOCALHOST_ADDRESS}:${CLOVIS_CLIENT_PORT}"
AWS_ACCESS_KEY_ID: "${CLOVIS_AWS_ID}"
AWS_SECRET_ACCESS_KEY: "${CLOVIS_AWS_SECRET}"
CLOVIS_RUN_SLOW_TESTS: "${CLOVIS_RUN_SLOW_TESTS}"
CLOVIS_SMTP_HOST: "maildev"
CLOVIS_SMTP_PORT: "25"
GOOGLEMAP_KEY: "${CLOVIS_GOOGLEMAP_KEY}"
# configuration at build time
build:
context: .
dockerfile: api-server/Dockerfile.dev
volumes:
- ./api-server/src:/usr/src/api-server/src:ro
- ./api-server/resources:/usr/src/api-server/resources:ro
- ./email/src:/usr/src/email/src:ro
- ./sms/src:/usr/src/sms/src:ro
- ./api-server/scripts:/usr/src/api-server/scripts:ro
# Override the default command
command: yarn run watch
ports:
# also update CLOVIS_PUBLIC_API_URL if you change this
- "${CLOVIS_API_PORT}:3000"
links:
- mongo:mongo
- maildev:maildev
tty: true
mongo:
image: mongo
logging:
driver: "none"