This repository has been archived by the owner on Oct 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (63 loc) · 1.67 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
version: '3.1'
volumes:
redis-production:
postgres-data-production:
services:
db:
image: postgres:10
expose:
- 5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: nekko_production
volumes:
- postgres-data-production:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
in_memory_store:
image: redis:4-alpine
expose:
- 6379
volumes:
- redis-production:/var/lib/redis/data
healthcheck:
test: ["CMD", "redis-cli", "-h", "localhost", "ping"]
server_app: &server_app
image: nekkoru/webserver:${WEBSERVER_TAG:-latest}
build: ./website
command: bundle exec rails server -b 0.0.0.0
entrypoint: "./docker-entrypoint.sh"
restart: on-failure
environment:
RAILS_ENV: production
DATABASE_URL: 'postgres://postgres:postgres@db/nekko_production'
REDIS_DB: "redis://in_memory_store:6379"
SECRET_KEY_BASE: STUB
DEVISE_SECRET_KEY: STUB
RAILS_LOG_TO_STDOUT: 'true'
REDIS_URL: 'redis://in_memory_store:6379/1'
MOONWALK_PARSER_URL: 'http://moonwalk:8080'
SELECTEL_S3_ACCESS_KEY: super_mega
SELECTEL_S3_SECRET_KEY: secret_keys
depends_on:
- db
- in_memory_store
ports:
- 3000:3000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
# Sidekiq
sidekiq:
<<: *server_app
ports: []
command: [sidekiq]
depends_on:
- server_app
- db
- in_memory_store
moonwalk:
image: deissh/moonwalk-parser
environment:
# ho ho its public
MOONWALK_API_TOKEN: 6eb82f15e2d7c6cbb2fdcebd05a197a2