-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
63 lines (63 loc) · 1.34 KB
/
docker-compose.yml.example
File metadata and controls
63 lines (63 loc) · 1.34 KB
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
version: '2'
services:
postgres:
image: postgres:9
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:4.0
app:
build:
context: .
args:
UID: 1000
GID: 1000
RAILS_ENV: development
working_dir: /medusa
environment:
- "RAILS_ENV=development"
- "REDIS_URL=redis://redis:6379"
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- ./app:/medusa/app
- ./spec:/medusa/spec
- ./config:/medusa/config
- ./public:/medusa/public
- ./db:/medusa/db
- ./log:/medusa/log
ports:
- "3000:3000"
depends_on:
- postgres
- redis
worker:
build:
context: .
args:
UID: 1000
GID: 1000
RAILS_ENV: development
working_dir: /medusa
environment:
- "RAILS_ENV=development"
- "REDIS_URL=redis://redis:6379"
volumes:
- ./app:/medusa/app
- ./config:/medusa/config
- ./public/system:/medusa/public/system
- ./log:/medusa/log
command: bundle exec sidekiq
links:
- postgres
- redis
volumes:
postgres_data:
external: true
stone_data:
driver_opts:
type: nfs
o: "addr=172.24.1.36,nfsvers=4"
device: ":/"
external: true