-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.22 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
version: "3"
services:
postgres:
build:
context: ./postgres
container_name: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
ports:
- "5432:5432"
redis:
image: redis:alpine
container_name: redis
python:
build:
context: ./python
dockerfile: Dockerfile.python
# image: python:3.7
container_name: python
volumes:
- ./python:/app
command: /bin/sh -c "cd /app && python redis-ingest.py"
environment:
- REDIS_URL=redis://redis:6379/0
depends_on:
- redis
server:
image: node:dubnium
container_name: server
volumes:
- ./:/app
ports:
- "5000:5000"
command: bash -c "cd /app && npm run server"
environment:
- REDIS_URL=redis://redis:6379/0
- DATABASE_URL=postgresql://postgres:example@postgres:5432
- GOOGLE_APPLICATION_CREDENTIALS=/app/server/auth/google-credentials.json
depends_on:
- python
- postgres
client:
image: node:dubnium
container_name: client
volumes:
- ./:/app
ports:
- "3000:3000"
command: bash -c "cd /app && npm run start"
environment:
- REACT_APP_SOCKET=127.0.0.1:5000
depends_on:
- server