-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (89 loc) · 2.4 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
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
services:
weilplace-server:
build:
context: ./backend
args:
- NODE_ENV=development
container_name: weilplace-server
volumes:
- weilplace-volume-pixels:/node-app/public/pixels:ro
environment:
PORT: "3001"
PATH_PICTURE: "./public/pixels/picture.png"
LOG_ROUTES: "true"
REDIS_ENABLED: "true"
REDIS_URL: "redis://weilplace-redis:6379"
PLACE_DELAY: 0
DISABLE_FILESYSTEM: "false"
PIXEL_SAVER_CALL: "false"
networks:
weilplace:
ipv4_address: 10.5.0.2
ports:
- "3001:3001"
weilplace-pixelsaver:
build:
context: ./backend
args:
- NODE_ENV=development
container_name: weilplace-pixelsaver
volumes:
- weilplace-volume-pixels:/node-app/public/pixels:rw
entrypoint: "npm run saver"
environment:
API_URL: "http://weilplace-server:3001"
PATH_PICTURE: "./public/pixels/picture.png"
REDIS_ENABLED: "true"
REDIS_URL: "redis://weilplace-redis:6379"
DISABLE_FILESYSTEM: "false"
PIXEL_SAVER_CALL: "false"
networks:
weilplace:
ipv4_address: 10.5.0.3
weilplace-frontend:
build:
context: ./frontend
args:
- SERVERSIDE_API_URL=http://weilplace-server:3001
# - NEXT_PUBLIC_API_URL=http://localhost:3000/backend
# - NEXT_PUBLIC_WEBSOCKET_ENABLED=true
# - NEXT_PUBLIC_WEBSOCKET_URL=ws://localhost:3000/backend/
container_name: weilplace-frontend
environment:
PORT: "3000"
SERVERSIDE_API_URL: "http://weilplace-server:3001"
# Especifica o caminho que irá buscar os assets, para
# hospedar o site em um subpath /algumacoisa
ASSET_PREFIX: ""
networks:
weilplace:
ipv4_address: 10.5.0.4
ports:
- "3000:3000"
weilplace-redis:
image: redis
container_name: weilplace-redis
networks:
weilplace:
ipv4_address: 10.5.0.5
ports:
- "6379:6379"
# weilplace-nginx:
# build:
# context: .
# dockerfile: Dockerfile.nginx
# container_name: weilplace-nginx
# ports:
# - "3000:80"
# networks:
# weilplace:
# ipv4_address: 10.5.0.6
volumes:
weilplace-volume-pixels:
networks:
weilplace:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1