-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
62 lines (57 loc) · 1.17 KB
/
docker-compose.yaml
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
version: "3.3"
services:
db:
image: postgres:latest
volumes:
- db-data:/var/lib/postgresql/data
networks:
- db
backend:
build: ./gatech-swapr-server-node
user: "node"
volumes:
- ./gatech-swapr-server-node:/data/app
- /data/node_modules
- ~/.swapr-yarn-cache:/yarn_cache
working_dir: /data/app
depends_on:
- db
networks:
- backend
- db
environment:
YARN_CACHE_FOLDER: /yarn_cache
client-watch:
build:
context: ./gatech-swapr-client
dockerfile: Dockerfile.watch
user: "node"
volumes:
- ./gatech-swapr-client:/data/src
- /data/node_modules
- ~/.swapr-yarn-cache:/yarn_cache
working_dir: /data/src
networks:
- client-watch
environment:
YARN_CACHE_FOLDER: /yarn_cache
www:
image: nginx:latest
depends_on:
- backend
- client-watch
networks:
- backend
- client-watch
volumes:
- ./config/www/nginx.dev.conf:/etc/nginx/conf.d/vhost.conf:ro
- ./config/www/ssl:/etc/nginx/ssl:ro
links:
- backend
- client-watch
networks:
backend:
db:
client-watch:
volumes:
db-data: