forked from ThingEngineering/wowthing-again
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (90 loc) · 1.83 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
92
93
94
95
96
97
version: "3.8"
services:
backend:
build:
context: .
dockerfile: apps/backend/development.Dockerfile
depends_on:
- postgres
- redis
environment:
BattleNet__ClientID: $BattleNet__ClientID
BattleNet__ClientSecret: $BattleNet__ClientSecret
logging:
options:
max-size: "1m"
max-file: "5"
networks:
- wowthing
volumes:
- ./:/app/
- /app/apps/backend/bin/container/
- /app/apps/backend/obj/container/
web:
build:
context: .
dockerfile: apps/web/development.Dockerfile
depends_on:
- postgres
- redis
environment:
BattleNet__ClientID: $BattleNet__ClientID
BattleNet__ClientSecret: $BattleNet__ClientSecret
logging:
options:
max-size: "1m"
max-file: "5"
networks:
- wowthing
ports:
- "55500:5000"
- "55501:5001"
volumes:
- ./:/app/
- /app/apps/web/bin/container/
- /app/apps/web/obj/container/
frontend:
build:
context: .
dockerfile: apps/frontend/development.Dockerfile
logging:
options:
max-size: "1m"
max-file: "5"
networks:
- wowthing
ports:
- "55505:55505"
volumes:
- ./:/app/
- /root/.npm
- /app/node_modules/
- /app/apps/frontend/node_modules/
postgres:
build:
context: .
dockerfile: apps/postgres/Dockerfile
environment:
POSTGRES_PASSWORD: topsecret
POSTGRES_USER: wowthing
networks:
- wowthing
ports:
- "55532:5432"
restart: always
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:latest
networks:
- wowthing
ports:
- "55579:6379"
restart: always
volumes:
- redis:/data
networks:
wowthing:
volumes:
postgres:
redis: