forked from CircuitVerse/CircuitVerse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (92 loc) · 2.1 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
x-common-build: &common_build
build:
context: .
dockerfile: Dockerfile
args:
- NON_ROOT_USER_ID=${CURRENT_UID}
- NON_ROOT_GROUP_ID=${CURRENT_GID}
- OPERATING_SYSTEM=${OPERATING_SYSTEM}
- NON_ROOT_USERNAME=${NON_ROOT_USERNAME}
- NON_ROOT_GROUPNAME=${NON_ROOT_GROUPNAME}
volumes:
- .:/circuitverse:rw
- ./config/database.docker.yml:/circuitverse/config/database.yml:rw
- ruby_bundle:/home/vendor/bundle:rw
version: "3.1"
services:
db:
image: postgres:14
environment:
POSTGRES_DB: circuitverse_development
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- postgres_data:/var/lib/postgresql@14/data/pgdata
redis:
image: redis:7.0-alpine
web:
<<: *common_build
command: sleep infinity
cap_add:
- SYS_ADMIN
ports:
- "3000:3000"
- "3001:3001"
- "3036:3036"
- "3037:3037"
depends_on:
- db
- redis
environment:
REDIS_URL: "redis://redis:6379/0"
CIRCUITVERSE_USE_SOLR: "false"
DOCKER_ENVIRONMENT: "true"
NODE_ENV: "development"
HOST_CURRENT_DIRECTORY: $PWD
OPERATING_SYSTEM: $OPERATING_SYSTEM
restart: unless-stopped
sidekiq:
<<: *common_build
command:
- bash
- -c
- |
bin/docker/wait_for_setup && \
bundle exec sidekiq -q default -q mailers
environment:
REDIS_URL: "redis://redis:6379/0"
depends_on:
- db
- redis
- mailcatcher
solargraph:
<<: *common_build
command:
- bash
- -c
- |
bin/docker/wait_for_setup && \
bundle exec solargraph socket --host=0.0.0.0 --port=3002
ports:
- "3002:3002"
asset_build:
<<: *common_build
environment:
- NODE_ENV=development
- RAILS_ENV=development
command:
- bash
- -c
- |
bin/docker/wait_for_setup && \
yarn build --watch
ports:
- "3035:3035"
mailcatcher:
image: schickling/mailcatcher
ports:
- "1080:1080"
- "1025:1025"
volumes:
ruby_bundle:
postgres_data: