Skip to content

Commit 37576f8

Browse files
committed
fix: adjust docker compose sintaxe
1 parent 8251de9 commit 37576f8

1 file changed

Lines changed: 50 additions & 51 deletions

File tree

docker-compose.production.yml

Lines changed: 50 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,52 @@
1-
services:
2-
api:
3-
build:
4-
context: .
5-
dockerfile: Dockerfile.production
6-
restart: unless-stopped
7-
networks:
8-
- coolify
9-
environment:
10-
RAILS_ENV: production
11-
DATABASE_URL: ${DATABASE_URL}
12-
REDIS_URL: ${REDIS_URL}
13-
ELASTICSEARCH_URL: ${ELASTICSEARCH_URL:-http://elastic:9200}
14-
RAILS_LOG_TO_STDOUT: "true"
15-
PORT: 3000
16-
RAILS_MASTER_KEY: ${RAILS_MASTER_KEY}
17-
RIOT_API_KEY: ${RIOT_API_KEY}
18-
CORS_ORIGINS: ${CORS_ORIGINS:-https://prostaff.gg,https://www.prostaff.g
19-
g,https://api.prostaff.gg}
20-
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
21-
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
22-
ports:
23-
- "3000:3000"
24-
healthcheck:
25-
test: ["CMD-SHELL", "curl -f http://localhost:3000/up || exit 1"]
26-
interval: 30s
27-
timeout: 5s
28-
retries: 3
29-
start_period: 40s
1+
services:
2+
api:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile.production
6+
restart: unless-stopped
7+
networks:
8+
- coolify
9+
environment:
10+
RAILS_ENV: production
11+
DATABASE_URL: ${DATABASE_URL}
12+
REDIS_URL: ${REDIS_URL}
13+
ELASTICSEARCH_URL: ${ELASTICSEARCH_URL:-http://elastic:9200}
14+
RAILS_LOG_TO_STDOUT: "true"
15+
PORT: 3000
16+
RAILS_MASTER_KEY: ${RAILS_MASTER_KEY}
17+
RIOT_API_KEY: ${RIOT_API_KEY}
18+
CORS_ORIGINS: ${CORS_ORIGINS:-https://prostaff.gg,https://www.prostaff.gg,https://api.prostaff.gg}
19+
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
20+
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
21+
ports:
22+
- "3000:3000"
23+
healthcheck:
24+
test: ["CMD-SHELL", "curl -f http://localhost:3000/up || exit 1"]
25+
interval: 30s
26+
timeout: 5s
27+
retries: 3
28+
start_period: 40s
3029

31-
sidekiq:
32-
build:
33-
context: .
34-
dockerfile: Dockerfile.production
35-
command: bundle exec sidekiq -C config/sidekiq.yml
36-
restart: unless-stopped
37-
networks:
38-
- coolify
39-
environment:
40-
RAILS_ENV: production
41-
DATABASE_URL: ${DATABASE_URL}
42-
REDIS_URL: ${REDIS_URL}
43-
ELASTICSEARCH_URL: ${ELASTICSEARCH_URL:-http://elastic:9200}
44-
RAILS_MASTER_KEY: ${RAILS_MASTER_KEY}
45-
RIOT_API_KEY: ${RIOT_API_KEY}
46-
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
47-
depends_on:
48-
api:
49-
condition: service_healthy
30+
sidekiq:
31+
build:
32+
context: .
33+
dockerfile: Dockerfile.production
34+
command: bundle exec sidekiq -C config/sidekiq.yml
35+
restart: unless-stopped
36+
networks:
37+
- coolify
38+
environment:
39+
RAILS_ENV: production
40+
DATABASE_URL: ${DATABASE_URL}
41+
REDIS_URL: ${REDIS_URL}
42+
ELASTICSEARCH_URL: ${ELASTICSEARCH_URL:-http://elastic:9200}
43+
RAILS_MASTER_KEY: ${RAILS_MASTER_KEY}
44+
RIOT_API_KEY: ${RIOT_API_KEY}
45+
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
46+
depends_on:
47+
api:
48+
condition: service_healthy
5049

51-
networks:
52-
coolify:
53-
external: true
50+
networks:
51+
coolify:
52+
external: true

0 commit comments

Comments
 (0)