-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·50 lines (48 loc) · 1020 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·50 lines (48 loc) · 1020 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
version: "3"
services:
chatpack:
build:
context: .
dockerfile: Dockerfile
container_name: chatpack
image: chatpack
volumes:
- ".:/app"
logging:
driver: "json-file"
options:
max-size: 1m
ports:
- "3000:3000"
environment:
REDIS_URL: redis://redis:6379
DATABASE_URL: postgres://chatpack:password@postgres:5432/chatpack_db_development
depends_on:
- postgres
- redis
postgres:
container_name: cp_postgres
image: postgres:9.4-alpine
environment:
PGDATA: /pgdata
POSTGRES_USER: chatpack
POSTGRES_PASSWORD: password
logging:
driver: "json-file"
options:
max-size: 1m
volumes:
- ./postgres:/pgdata
- ./tmp:/tmp
ports:
- 5432:5432
redis:
container_name: cp_redis
image: redis:5.0-alpine
command: redis-server --appendonly yes
logging:
driver: "json-file"
options:
max-size: 1m
ports:
- 6379:6379