-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
106 lines (105 loc) · 2.16 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
version: '3.8'
x-backend-services-hosts:
&backend-services-hosts
MONGODB_HOST: mongodb
REDIS_URL: redis://redis:6379
PG_DATABASE_HOST: postgres
services:
backend:
build: backend
depends_on:
- postgres
- mongodb
- redis
ports:
- 3000:3000
volumes:
- ./backend:/app
environment: *backend-services-hosts
profiles:
- dev
- native
workers:
build: backend
command: bundle exec sidekiq -C config/sidekiq.yml
depends_on:
- redis
- mongodb
- postgres
volumes:
- ./backend:/app
environment: *backend-services-hosts
profiles:
- dev
- native
frontend:
platform: linux/amd64
build: frontend
depends_on:
- backend
ports:
- 4300:4300
- 65535:65535
volumes:
- ./frontend:/app
command: sh -c "cd /app && rm -rfd ./dist && ./node_modules/.bin/ember serve --port 4300 --proxy http://backend:3000 --live-reload-host frontend --live-reload-port 65535"
profiles:
- dev
native:
build:
context: ./native
args:
- NODE_ENV=development
environment:
- NODE_ENV=development
tty: true
ports:
- '19006:19006'
- '19001:19001'
- '19002:19002'
depends_on:
- backend
volumes:
- ./native:/opt/native/app:delegated
- ./native/package.json:/opt/native/package.json
- ./native/package-lock.json:/opt/native/package-lock.json
- notused:/opt/native/app/node_modules
healthcheck:
disable: true
profiles:
- native
app-setup:
build: backend
command: bundle exec rails app:setup
depends_on:
- postgres
environment: *backend-services-hosts
profiles:
- tools
postgres:
image: postgres:12.8-alpine
restart: always
environment:
POSTGRES_PASSWORD: password
PGDATA: /data
volumes:
- postgres:/data
expose:
- 5432
mongodb:
image: mongo:4.4.9
volumes:
- mongodb:/data/db
expose:
- 27017
redis:
image: redis:6.2.3-alpine
volumes:
- redis:/data
expose:
- 6379
volumes:
postgres:
mongodb:
redis:
notused: