-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
78 lines (78 loc) · 1.91 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
version: '3.5'
services:
redis:
image: redis:7.2.2-alpine
volumes:
- redis-data:/data
ports:
- "${REDIS_PORT:-6379}:6379"
test:
depends_on:
- redis
command: ["sleep" ,"9999"]
environment:
SYMWS_URL: "${SYMWS_URL}"
SYMWS_EDIT_OVERRIDE: "${SYMWS_EDIT_OVERRIDE}"
SYMWS_USERNAME: "${SYMWS_USERNAME:-myaccount}"
REDIS_SIDEKIQ_URI: "redis://redis:6379/1"
RAILS_ENV: "test"
REDIS_DATABASE_URI: "redis://redis:6379/2"
SYMWS_PIN: "${SYMWS_PIN}"
tty: true
stdin_open: true
build:
context: .
target: test
volumes:
- bundle-data:/app/vendor/bundle
- node-data:/app/node_modules
- type: bind
source: ./
target: /app/
sidekiq:
environment:
SYMWS_URL: "${SYMWS_URL}"
SYMWS_EDIT_OVERRIDE: "${SYMWS_EDIT_OVERRIDE}"
SYMWS_USERNAME: "${SYMWS_USERNAME:-myaccount}"
REDIS_SIDEKIQ_URI: "redis://redis:6379/1"
RAILS_ENV: "development"
REDIS_DATABASE_URI: "redis://redis:6379/2"
SYMWS_PIN: "${SYMWS_PIN}"
tty: true
stdin_open: true
build:
context: .
target: base
volumes:
- bundle-data:/app/vendor/bundle
- node-data:/app/node_modules
- type: bind
source: ./
target: /app/
command: ["/app/bin/sidekiq"]
web:
environment:
SYMWS_URL: "${SYMWS_URL}"
SYMWS_EDIT_OVERRIDE: "${SYMWS_EDIT_OVERRIDE}"
SYMWS_USERNAME: "${SYMWS_USERNAME:-myaccount}"
REDIS_SIDEKIQ_URI: "redis://redis:6379/1"
RAILS_ENV: "development"
REDIS_DATABASE_URI: "redis://redis:6379/2"
SYMWS_PIN: "${SYMWS_PIN}"
tty: true
stdin_open: true
build:
context: .
target: base
volumes:
- bundle-data:/app/vendor/bundle
- node-data:/app/node_modules
- type: bind
source: ./
target: /app/
ports:
- "${APP_PORT:-3000}:3000"
volumes:
redis-data:
bundle-data:
node-data: