-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
108 lines (107 loc) · 2.54 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
104
105
106
107
108
version: '3.5'
services:
# Can be used locally with M1 Macs in place of the selenuim container
seleniarm:
image: seleniarm/standalone-chromium
volumes:
- /dev/shm:/dev/shm
ports:
- "4444:4444"
container_name: selenium
selenium:
# Pinned at the same version as the selenium-webdriver gem
# v4.15 has some bugs so waiting to update
image: selenium/standalone-chrome:4.14
volumes:
- /dev/shm:/dev/shm
ports:
- "4444:4444"
redis:
image: redis:7.0.12
volumes:
- redis-data:/data
ports:
- "6379:6379"
db:
environment:
MYSQL_ROOT_PASSWORD: root
image: mariadb:10.4.6
ports:
- "3306:3306"
volumes:
- db-data:/var/lib/mysql
test:
tty: true
stdin_open: true
user: root
image: etda_workflow_web:latest
# build:
# context: .
# target: base
environment:
INTEGRATION: ${INTEGRATION:-false}
REDIS_HOST: redis
APP_HOST: web
MYSQL_HOST: db
RAILS_ENV: test
PARTNER: ${PARTNER:-graduate}
command: >
# sh -c "bundle check || bundle
# && bundle exec rake db:migrate
# && bundle exec guard"
depends_on:
- db
- selenium
- redis
# volumes:
# - workflow_files:/etda_workflow/tmp/workflow_files
# - explore_files:/etda_workflow/tmp/explore_files
# - bundle-data:/etda_workflow/vendor/bundle
# - node-data:/etda_workflow/node_modules
# - type: bind
# consistency: cached
# source: .
# target: /etda_workflow/
web:
tty: true
stdin_open: true
user: root
build:
context: .
target: base
environment:
REDIS_HOST: redis
APP_HOST: web
MYSQL_HOST: db
RAILS_ENV: development
PARTNER: ${PARTNER:-graduate}
LIONPATH_SFTP_SERVER: ${LIONPATH_SFTP_SERVER}
LIONPATH_SFTP_USER: ${LIONPATH_SFTP_USER}
LIONPATH_SSH_KEY: ${LIONPATH_SSH_KEY}
LDAP_PASSWORD: ${LDAP_PASSWORD}
LDAP_USER: ${LDAP_USER}
command: >
sh -c "/etda_workflow/bin/startup"
ports:
- "3000:3000"
depends_on:
- db
volumes:
- workflow_files:/etda_workflow/tmp/workflow_files
- explore_files:/etda_workflow/tmp/explore_files
- bundle-data:/etda_workflow/vendor/bundle
- node-data:/etda_workflow/node_modules
- type: bind
source: $HOME/.ssh
target: /etda_workflow/.ssh
- type: bind
consistency: cached
source: .
target: /etda_workflow/
volumes:
node-data:
bundle-data:
db-data:
redis-data:
workflow_files:
explore_files: