-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.win.yml
More file actions
53 lines (53 loc) · 1012 Bytes
/
docker-compose.win.yml
File metadata and controls
53 lines (53 loc) · 1012 Bytes
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
version: "3.1"
services:
postgres_db:
image: postgres:12.1
container_name: db
restart: always
ports:
- "5444:5432"
environment:
POSTGRES_USER: "event"
POSTGRES_PASSWORD: "defaultpassword"
POSTGRES_DB: "eeeeeventdb"
volumes:
- pgdata:/var/lib/postgresql/data
redis:
container_name: redis
image: redis
ports:
- "6379:6379"
volumes:
- ./redis:/data
restart: always
server:
restart: always
container_name: serverside
build:
context: ./server
ports:
- "5001:5000"
environment:
REDIS_HOST: redis
volumes:
- ./server:/app
- /app/node_modules
- /app/uploads
command: npm start
depends_on:
- postgres_db
- redis
client:
build:
context: ./client/
container_name: clientside
ports:
- "3001:3000"
volumes:
- ./client:/app
- /app/node_modules
depends_on:
- server
volumes:
pgdata:
driver: local