-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 919 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
name: quequeo
services:
app:
container_name: api-quequeo
build:
context: .
args:
RAILS_ENV: ${RAILS_ENV:-development}
BUNDLE_WITHOUT: ""
env_file:
- .env
environment:
- RAILS_ENV=${RAILS_ENV:-development}
ports:
- "3000:3000"
- "1234:1234"
volumes:
- .:/var/www/api-quequeo/current
stdin_open: true
tty: true
command: sh -c "bundle exec rails server -b '0.0.0.0'"
depends_on:
- db
db:
container_name: api-quequeo-database
image: postgres:15
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
volumes:
- db_data:/var/lib/postgresql/data # persist data even if container shuts down
volumes:
db_data:
driver: local
networks:
quequeo_network:
driver: bridge