-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
71 lines (71 loc) · 1.47 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
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.8'
services:
web: &app_base
depends_on:
- db
- vault
build:
context: .
dockerfile: Dockerfile
ports:
- "3333:3333"
command: rails s -b 0.0.0.0 -P /tmp/server.pid
stdin_open: true
tty: true
links:
- db
- vault
volumes:
- bundle:/usr/local/bundle
- .:/app
environment: &env_base
PORT: 3333
DATABASE_URL: postgres://postgres:@db:5432
ENCRYPTION_KEY: abcdefghijklmn
GITHUB_ORGANIZATION: 'degica'
GITHUB_DEVELOPER_TEAM: ''
GITHUB_ADMIN_TEAM: 'developers'
RAILS_ENV: development
# Uncomment to use vault auth
# VAULT_URL: http://vault:8200
# VAULT_PATH_PREFIX: degica
worker:
<<: *app_base
ports: []
command: rake jobs:work
volumes:
- bundle:/usr/local/bundle
- .:/app
test:
<<: *app_base
build:
context: .
dockerfile: Dockerfile.development
ports: []
command: sleep infinity
volumes:
- bundle:/usr/local/bundle
- .:/app
db:
image: postgres:11
environment:
PGDATA: /data
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: echo "\\l" | psql -U postgres
volumes:
- pgdata:/data
vault:
image: vault:1.5.2
ports:
- "8200:8200"
environment:
SKIP_SETCAP: "true"
VAULT_DEV_ROOT_TOKEN_ID: root-token
volumes:
pgdata:
bundle:
networks:
default:
name: barcelona