generated from andersonbosa/dothub
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (56 loc) · 1.49 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
version: '3.4'
##############################################################################
# DISCLAIMER 😎
#
# The credentials exposed here were generated for testing and destroyed.
# Vulnerabilities issues identified here must be disregarded if "exposed secrets" category.
##############################################################################
# TOFIX: hot reloading isnt work
# TODO: setup configuration to debug in VSCode
volumes:
node_modules: {}
networks:
spacetime-private-net:
services:
##
# MAIN APPLICATIONS
##
server_fastify:
build:
context: ./services/server-fastify
dockerfile: Dockerfile
args:
FASTIFY_SERVER_PORT: 3333
# environment:
# NODE_OPTIONS: "--inspect=0.0.0.0:9229"
networks:
- spacetime-private-net
ports:
- "3333:3333"
hostname: server_fastify
volumes:
- ./services/server-fastify:/server
- /server/node_modules
# - node_modules:/server/node_modules
app_web:
depends_on:
- server_fastify
build:
context: ./services/app-web
dockerfile: Dockerfile
args:
NEXTJS_PORT: 3000
environment:
PORT: 3000
FASTIFY_SERVER_PORT: 3333
networks:
- spacetime-private-net
ports:
- "3000:3000"
hostname: app_web
volumes:
- ./services/app-web:/app
# - /app/node_modules
# - node_modules:/app/node_modules
# tmpfs:
# - /app/.next