forked from Hadashco/emblem-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (39 loc) · 910 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
39 lines (39 loc) · 910 Bytes
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
#v1 for compatability with Circle CI
emblem-web-client:
build: client
ports:
- "8080:8080"
- "80:80"
volumes:
- ./client:/usr/client
# Mount the node folders as 'Empty' on Docker container
# This prevents symlink issues between the container and the host filesystem
- /usr/client/node_modules
environment:
- HOST_MODE=${HOST_MODE}
- HOST_SERVER=${HOST_SERVER}
command: npm start
emblem-web-api:
build: api
ports:
- "3000:3000"
volumes:
- ./api:/usr/api
- /usr/api/node_modules
environment:
- SESSION_SECRET=${SESSION_SECRET}
- FACEBOOK_ID=${FACEBOOK_ID}
- FACEBOOK_SECRET=${FACEBOOK_SECRET}
- AWS_ID=${AWS_ID}
- AWS_SECRET=${AWS_SECRET}
- HOST_MODE=${HOST_MODE}
- HOST_SERVER=${HOST_SERVER}
links:
- emblem-db
command: npm start
emblem-db:
image: postgres
environment:
- POSTGRES_PASSWORD=emblem
ports:
- "5432:5432"