-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (50 loc) · 1.05 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: '2'
services:
rails:
build: .
command: rails s -b 0.0.0.0
container_name: beachtent
ports:
- 3000:3000
volumes:
- .:/opt/app
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=db
depends_on:
- db
db:
image: postgres:12-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
postgres:
mem_limit: 1Gb
image: 'postgres:9.5'
volumes_from:
- data_database
ports:
- '5432:5432'
environment:
POSTGRES_USER: beachtent
POSTGRES_PASSWORD: beachtent
redis:
mem_limit: 1Gb
image: redis:3-alpine
command: redis-server --appendonly no
hostname: redis
ports:
- "6379:6379"
volumes_from:
- data_redis
data_redis:
image: cogniteev/echo
command: echo 'Data Container for Redis'
volumes:
- /data
data_database:
image: cogniteev/echo
command: echo 'Data Container for Postgres'
volumes:
- /var/lib/postgresql/data