This repository was archived by the owner on Sep 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (77 loc) · 1.72 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (77 loc) · 1.72 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3.7"
services:
db:
image: 'postgres:12'
ports:
- '5432:5432'
volumes:
- 'postgres-data:/var/lib/postgresql/data'
environment:
POSTGRES_USER: "root"
POSTGRES_PASSWORD:
POSTGRES_HOST_AUTH_METHOD: trust
redis:
image: 'redis:5'
ports:
- '6379:6379'
volumes:
- 'redis-data:/data'
app:
command: 'bundle exec rails s -b 0.0.0.0'
working_dir: '/app'
links:
- 'db:database'
- 'redis:redis'
image: covid19br_pub:dev
build:
context: './docker'
dockerfile: 'Dockerfile.dev'
ports:
- '3000:3000'
volumes:
- './:/app'
- 'gems-data:/usr/local/bundle'
- 'node_modules-data:/app/node_modules'
environment:
WEBPACKER_DEV_SERVER_HOST: 'webpack'
REDIS_URL: 'redis://redis/0'
sidekiq:
command: 'bundle exec sidekiq'
working_dir: '/app'
links:
- 'db:database'
- 'redis:redis'
image: covid19br_pub:dev
build:
context: './docker'
dockerfile: 'Dockerfile.dev'
volumes:
- './:/app'
- 'gems-data:/usr/local/bundle'
- 'node_modules-data:/app/node_modules'
environment:
WEBPACKER_DEV_SERVER_HOST: 'webpack'
REDIS_URL: 'redis://redis/0'
webpack:
command: './bin/webpack-dev-server'
working_dir: '/app'
links:
- 'db:database'
image: covid19br_pub:dev
ports:
- '3035:3035'
volumes:
- './:/app'
- 'gems-data:/usr/local/bundle'
- 'node_modules-data:/app/node_modules'
environment:
WEBPACKER_DEV_SERVER_HOST: '0.0.0.0'
volumes:
postgres-data:
driver: local
redis-data:
driver: local
gems-data:
driver: local
node_modules-data:
driver: local