-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (51 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
51 lines (51 loc) · 1.02 KB
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
networks:
development:
test:
volumes:
db_data:
shared_data:
services:
arc_redis:
image: redis:7.2-alpine
command: ["redis-server"]
networks:
- development
- test
volumes:
- shared_data:/var/shared/redis
db:
image: postgres:16-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:
- .:/rails
- shared_data:/var/shared
networks:
- development
ports:
- 3000:3000
stdin_open: true
tty: true
env_file: .env.development
entrypoint: ["./bin/docker-entrypoint"]
command: ["./bin/rails", "server", "-p", "3000", "-b", "0.0.0.0"]
environment:
RAILS_ENV: development
depends_on:
- db
- arc_redis