-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 1.3 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
services:
app-server:
build:
context: .
dockerfile: ./Dockerfile.dev
environment:
- JWT_SECRET=anything
- LOCAL=true
- NEW_RELIC_LICENSE_KEY=dummy
- NEW_RELIC_APP_NAME=dummy
volumes:
- ./:/thinky_app
- /thinky_app/node_modules
- /thinky_app/.next
networks:
- dev-network
ports:
- "3000:3000"
websocket-server:
build:
context: .
dockerfile: ./Dockerfile.dev
environment:
- JWT_SECRET=anything
- LOCAL=true
- NEW_RELIC_LICENSE_KEY=dummy
- NEW_RELIC_APP_NAME=dummy
volumes:
- ./:/thinky_app
- /thinky_app/node_modules
- /thinky_app/.next
networks:
- dev-network
# for prod `node -r module-alias/register dist/server/socket/socket-server.js`
# for dev `ts-node --transpile-only -P tsconfig.json -r tsconfig-paths/register --files server/socket/socket-server.ts`
command: ts-node --transpile-only -P tsconfig.json -r tsconfig-paths/register --files server/socket/socket-server.ts
ports:
- "3001:3001"
nginx:
image: nginx:mainline-alpine
volumes:
- ./nginx-dev.conf:/etc/nginx/conf.d/default.conf
networks:
- dev-network
ports:
- "80:80"
networks:
dev-network: