-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yaml
79 lines (71 loc) · 1.38 KB
/
docker-compose.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.7'
services:
app: &app
build:
context: .
volumes:
- .:/var/www/app
- bundle_path:/bundle
environment:
- RAILS_ENV=${RAILS_ENV:-development}
- REDIS_URL=redis://redis:6379/
- DATABASE_URL=postgresql://postgres:postgres@postgres/punchclock_development
depends_on:
- postgres
- redis
tmpfs:
- /tmp
runner:
<<: *app
stdin_open: true
tty: true
command: /bin/bash
networks:
default:
internal:
runner_tests:
<<: *app
stdin_open: true
tty: true
command: echo "off by default"
shm_size: '2gb'
networks:
default:
internal:
environment:
- RAILS_ENV=${RAILS_ENV:-test}
- DATABASE_URL=postgresql://postgres:postgres@postgres/punchclock_test
server:
<<: *app
stdin_open: true
tty: true
command: bundle exec foreman start -f Procfile.dev
networks:
default:
internal:
aliases:
- backend-server
ports:
- '5000:5000'
env_file:
- .env
postgres:
image: postgres:9.6
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
redis:
image: redis:6.2.4-buster
volumes:
- redis:/data
ports:
- 6379:6379
volumes:
postgres:
redis:
bundle_path:
networks:
internal: