-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (54 loc) · 1.23 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
services:
postgres:
image: 'postgres:latest'
restart: always
environment:
POSTGRES_PASSWORD: ${PASSWORD_DB}
volumes:
- 'postgres:/var/lib/postgresql/data'
env_file: .env
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
website:
build:
context: .
command: bash -c "bundle exec rails assets:precompile && puma -C config/puma.rb"
restart: always
depends_on:
- 'postgres'
- 'sidekiq'
expose:
- '3000'
volumes:
- '.:/app'
- '/opt/agroecologymap:/app/storage'
- '/opt/dockers/logs:/app/log'
env_file: .env
healthcheck:
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
dns:
- 8.8.8.8
- 1.1.1.1
sidekiq:
build:
context: .
command: bundle exec sidekiq
restart: always
depends_on:
- 'postgres'
- 'valkey'
volumes:
- '.:/app'
env_file: .env
healthcheck:
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
dns:
- 8.8.8.8
- 1.1.1.1
valkey:
restart: always
image: valkey/valkey:latest
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
volumes:
postgres: