-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yml
53 lines (53 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
version: '3'
networks:
development:
test:
volumes:
db_data:
gem_cache:
shared_data:
services:
arc_redis:
image: redis:4.0-alpine
command: redis-server
networks:
- development
- test
volumes:
- shared_data:/var/shared/redis
db:
image: postgres:12.5-alpine
container_name: arc_db
volumes:
- db_data:/var/lib/postgresql/data
- shared_data:/var/shared
networks:
- development
- test
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5099:5432
web:
build:
context: .
dockerfile: Dockerfile
container_name: arc_app
volumes:
- .:/var/app
- shared_data:/var/shared
- gem_cache:/usr/local/bundle/gems
networks:
- development
ports:
- 3000:3000
stdin_open: true
tty: true
env_file: .env.development
entrypoint: dev-entrypoint.sh
command: ['rails', 'server', '-p', '3000', '-b', '0.0.0.0']
environment:
RAILS_ENV: development
depends_on:
- db