forked from grantkang5/discord-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.09 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
version: '3'
services:
postgres:
image: 'postgres:latest'
redis:
image: 'redis:latest'
nginx:
restart: always
build:
dockerfile: Dockerfile.dev
context: ./nginx
ports:
- '3050:80'
client:
build:
dockerfile: Dockerfile.dev
context: ./client
volumes:
- /usr/app/node_modules
- ./client:/usr/app
environment:
- REACT_APP_CLIENT_URL=http://localhost:3050
- REACT_APP_SERVER_URL=http://localhost:5000/api
api:
build:
dockerfile: Dockerfile.dev
context: ./server
volumes:
- /usr/app/node_modules
- ./server:/usr/app
environment:
- NODE_ENV=development
- PGUSER=postgres
- PGHOST=postgres
- PGDATABASE=postgres
- PGPASSWORD=pgpassword
- PGPORT=5432
- REDIS_HOST=redis
- REDIS_PORT=6379
- JWT_SECRET='zawarudo'
redis-server:
build:
dockerfile: Dockerfile.dev
context: ./redis-server
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
volumes:
- /usr/app/node_modules
- ./redis-server:/usr/app