-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
103 lines (96 loc) · 2.14 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: "3.9"
services:
redis:
image: redis:alpine
container_name: redis
command: redis-server
volumes:
- shared_data:/var/shared/redis
postgres:
image: postgres:alpine
container_name: postgres
volumes:
- postgres:/var/lib/postgresql/data
- shared_data:/var/shared
ports:
- 5432:5432
environment:
POSTGRES_USER: vhp
POSTGRES_PASSWORD: vhp
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- 2345:80
depends_on:
- postgres
app:
build:
context: .
dockerfile: Dockerfile
container_name: app
volumes:
- .:/var/app
- shared_data:/var/shared
- gem_cache:/usr/local/bundle/gems
# networks:
# - development
ports:
- 3000:3000
stdin_open: true
tty: true
entrypoint: dev-entrypoint.sh
command: ['rails', 's', '-p', '3000', '-b', '0.0.0.0']
environment:
RAILS_ENV: development
RAILS_DB: postgres
WEBPACKER_DEV_SERVER_HOST: webpacker
depends_on:
- postgres
webpacker:
image: vulnerability-history_app
container_name: webpacker
entrypoint: webpacker-entrypoint.sh
command: ['ruby', 'bin/webpack-dev-server']
volumes:
- .:/var/app
- shared_data:/var/shared
- gem_cache:/usr/local/bundle/gems
ports:
- 3035:3035
environment:
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
selenium:
image: selenium/standalone-chrome:latest
container_name: selenium
ports:
- 5900:5900
test:
image: vulnerability-history_app
container_name: test
volumes:
- .:/var/app
- shared_data:/var/shared
- gem_cache:/usr/local/bundle/gems
ports:
- 3005:3000
stdin_open: true
tty: true
entrypoint: test-entrypoint.sh
environment:
- RAILS_ENV=test
- RAILS_DB=postgres
- RAILS_DOCKER=true
depends_on:
- postgres
- selenium
volumes:
gem_cache:
pgadmin:
postgres:
shared_data: