-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
47 lines (44 loc) · 920 Bytes
/
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
x-rails-environment:
&rails_environment
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
REDIS_URL: "redis://redis:6379/1"
x-rails-build:
&rails_build
context: .
target: development
services:
web:
build:
*rails_build
image: ${COMPOSE_PROJECT_NAME}:latest
ports:
#- "127.0.0.1:${YTDLOR_WEB_PORT:-3000}:3000"
- "0.0.0.0:${YTDLOR_WEB_PORT:-3000}:3000"
depends_on:
- db
- redis
environment:
*rails_environment
command: ./server.sh
worker:
build:
*rails_build
image: ${COMPOSE_PROJECT_NAME}:latest
depends_on:
- db
- redis
environment:
*rails_environment
command: rake solid_queue:start
redis:
image: redis
db:
image: postgres:14
volumes:
- type: volume
source: postgres
target: /var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
volumes:
postgres: