-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
50 lines (47 loc) · 1.01 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
version: '3.8'
services:
api:
image: gorails:${IMAGE_TAG:-latest}
platform: linux/amd64
restart: always
environment: &app_envs
- RACK_ENV
- RAILS_ENV
- RAILS_MASTER_KEY
- RAILS_MAX_THREADS
- WEB_CONCURRENCY
- DATABASE_URL
- REDIS_URL
- SIDEKIQ_CONCURRENCY
- SIDEKIQ_WEB_USERNAME
- SIDEKIQ_WEB_PASSWORD
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_REGION
- AWS_BUCKET
- APP_HOST
- APP_PROTOCOL
- APP_DOCUMENT
- SMTP_HOST
- SMTP_PORT
- SMTP_USERNAME
- SMTP_PASSWORD
- JWT_SECRET_KEY
- SENTRY_DNS
sidekiq:
image: gorails:${IMAGE_TAG:-latest}
platform: linux/amd64
command: ./bin/bundle exec sidekiq
restart: on-failure
environment:
*app_envs
nginx:
image: nginx:latest
platform: linux/amd64
restart: always
ports:
- 80:80
depends_on:
- api
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro