-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
44 lines (40 loc) · 932 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
x-app: &backend-app
environment:
- RAILS_ENV=${RAILS_ENV:-development}
- RAILS_SERVE_STATIC_FILES=${RAILS_SERVE_STATIC_FILES:-false}
- DB_HOST=db
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- PORT=3000
services:
backend:
<<: *backend-app
image: eventaservo-dev
build:
context: ./
dockerfile: ./Dockerfile
target: development
args:
AMBIENTE: "${RAILS_ENV:-development}"
RAILS_MASTER_KEY: "${RAILS_MASTER_KEY}"
tty: true
ports:
- 3000:3000
depends_on:
- db
solid_queue:
<<: *backend-app
image: eventaservo-dev
command: bundle exec rails solid_queue:start
depends_on:
- db
db:
image: postgres:15.7
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=eventaservo_devel
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres: