generated from templatus/templatus-vue
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
81 lines (74 loc) · 1.66 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
version: '3.8'
x-app-base: &app_base
build: .
links:
- db
- redis
environment: &app_environment
APP_HOST: localhost
ASSET_HOST: ''
FORCE_SSL: 'false'
DB_HOST: db
DB_PASSWORD: my-secret-database-password
DB_USER: postgres
SECRET_KEY_BASE: something-long-and-secret
HONEYBADGER_API_KEY: ''
PLAUSIBLE_URL: ''
services:
db:
environment:
POSTGRES_PASSWORD: my-secret-database-password
networks:
- internal
image: postgres:17-alpine
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
volumes:
- ./docker-volumes/postgresql:/var/lib/postgresql/data
redis:
networks:
- internal
image: redis:alpine
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
volumes:
- ./docker-volumes/redis:/data
worker:
<<: *app_base
environment:
<<: *app_environment
REDIS_URL: redis://redis:6379/2
networks:
- internal
command: bundle exec sidekiq
healthcheck:
test: 'ps ax | grep -v grep | grep sidekiq'
cable:
<<: *app_base
environment:
<<: *app_environment
REDIS_URL: redis://redis:6379/1
command: bundle exec puma -p 28080 cable/config.ru
healthcheck:
test: ['CMD-SHELL', 'nc -z 127.0.0.1 28080 || exit 1']
networks:
- public
- internal
app:
<<: *app_base
environment:
<<: *app_environment
REDIS_URL: redis://redis:6379/0
ports:
- 3000
healthcheck:
test: ['CMD-SHELL', 'nc -z 127.0.0.1 3000 || exit 1']
networks:
- public
- internal
networks:
public:
external: true
internal:
driver_opts:
encrypted: ''