forked from hexlet-basics/hexlet-basics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
98 lines (88 loc) · 1.69 KB
/
docker-compose.override.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
---
version: '3'
services:
redis:
image: redis
volumes:
- redis:/data
web:
build:
context: .
dockerfile: Dockerfile
command: "make start"
env_file:
- .env
volumes:
- ~/.bash_history:/root/.bash_history
- .:/app
- /var/run/docker.sock:/var/run/docker.sock
- global_tmp:/tmp
- app_tmp:/app/tmp
depends_on:
- solargraph
- spring
# 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:
- .:/app
- /var/run/docker.sock:/var/run/docker.sock
- app_tmp:/app/tmp
- global_tmp:/tmp
sidekiq:
build: .
command: bundle exec sidekiq
volumes:
- .:/app
- app_tmp:/app/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
volumes:
- app_tmp:/app/tmp
- .:/app
caddy:
image: caddy:2.4.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: