This repository was archived by the owner on Jul 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (62 loc) · 1.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (62 loc) · 1.28 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:
redis:
image: redis
volumes:
- ./backend/tmp/redis:/data
ports:
- 6379:6379
worker:
build: backend
command: bundle exec sidekiq
environment:
REDIS_URL: redis://redis:6379/0
volumes:
- ./backend:/usr/src/backend-app
depends_on:
- db
- redis
nginx:
image: bitnami/nginx:1.10.2-r1
volumes:
- ./config/nginx:/bitnami/nginx/conf/vhosts
depends_on:
- backend
- frontend
environment:
VIRTUAL_HOST: yourproject.docker
VIRTUAL_PORT: 8080
ports:
- 8080:8080
db:
image: postgres
volumes:
- /var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
ALLOW_IP_RANGE: 0.0.0.0/0
ports:
- 54321:5432
backend:
build: backend
depends_on:
- db
- redis
- worker
volumes:
- ./backend:/usr/src/backend-app
environment:
REDIS_URL: redis://redis:6379/0
SIDEKIQ_REDIS_URL: redis://redis:6379/1
frontend:
build:
context: ./frontend/
depends_on:
- backend
command: npm start
volumes:
- ./frontend/:/usr/src/frontend-app
- ./frontend/node_modules:/usr/src/frontend-app/node_modules
ports:
- "35729:35729"