-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (46 loc) · 1008 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (46 loc) · 1008 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
version: "2.0"
services:
db:
image: postgres
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypass
# volumes:
# - postgres:/var/lib/postgresql/data
redis:
image: redis
ports:
- "6379:6379"
web:
build:
context: .
dockerfile: Dockerfile
command: bash -c "sh entrypoints/docker-entrypoint-web-local.sh"
volumes:
- ./app:/app/app
ports:
- "3000:3000"
environment:
PG_USERNAME: myuser
PG_PASSWORD: mypass
PG_HOST: db
REDIS_URL: "redis://redis:6379/1"
WS_CONNECTION_URL: "ws://localhost:28080/cable"
depends_on:
- db
- redis
websocket:
build:
context: .
dockerfile: Dockerfile
command: bash -c "sh entrypoints/docker-entrypoint-websocket.sh"
ports:
- "28080:28080"
environment:
PG_USERNAME: myuser
PG_PASSWORD: mypass
PG_HOST: db
REDIS_URL: "redis://redis:6379/1"
depends_on:
- db
- redis