forked from hexlet-basics/hexlet-basics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
120 lines (110 loc) · 2.4 KB
/
docker-compose.override.yml
File metadata and controls
120 lines (110 loc) · 2.4 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
version: "3"
services:
redis:
image: redis:6.2.7
volumes:
- redis:/data
solargraph:
build:
context: .
dockerfile: Dockerfile
command: bundle exec solargraph stdio
env_file:
- .env
volumes:
- .:${WORKING_DIRECTORY}
sorbet:
build:
context: .
dockerfile: Dockerfile
command: bundle exec srb tc --lsp --disable-watchman
env_file:
- .env
volumes:
- .:${WORKING_DIRECTORY}
web:
build:
context: .
dockerfile: Dockerfile
command: "make start"
env_file:
- .env
volumes:
- ~/.bash_history:/root/.bash_history
- .:${WORKING_DIRECTORY}
- /var/run/docker.sock:/var/run/docker.sock
# NOTE: контейнер с тестами моунтит /tmp с хоста, а не из локального волюма global_tmp
- /tmp:/tmp
- app_tmp:${WORKING_DIRECTORY}/tmp
depends_on:
# - solargraph
- spring
- frontend
# # https://github.com/neoclide/coc-solargraph#configuration-options
# # external server
# solargraph:
# build: .
# command: "bundle exec solargraph socket --host=0.0.0.0 --port=7658"
# ports:
# - "7658:7658"
# env_file:
# - .env
# volumes:
# - .:/app
# - app_tmp:/app/tmp
spring:
build: .
command: bin/spring server
pid: host
env_file:
- .env
volumes:
- .:${WORKING_DIRECTORY}
- /var/run/docker.sock:/var/run/docker.sock
- app_tmp:${WORKING_DIRECTORY}/tmp
- global_tmp:/tmp
sidekiq:
build: .
command: bundle exec sidekiq
volumes:
- .:${WORKING_DIRECTORY}
- app_tmp:${WORKING_DIRECTORY}/tmp
- /var/run/docker.sock:/var/run/docker.sock
- global_tmp:/tmp
env_file:
- .env
depends_on:
- spring
- redis
- web
frontend:
build: .
command: make frontend
# ports:
# - "3036:3036"
env_file:
- .env
ports:
- "8888:8888"
volumes:
- app_tmp:${WORKING_DIRECTORY}/tmp
- .:${WORKING_DIRECTORY}
webserver:
image: caddy:2.6
ports:
- "443:443"
- "80:80"
volumes:
- "./services/caddy/Caddyfile:/etc/caddy/Caddyfile"
- "./public:/etc/caddy/public"
- caddy_data:/data
- caddy_config:/config
# depends_on:
# - web
volumes:
redis:
caddy_data:
caddy_config:
app_tmp:
global_tmp: