-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (55 loc) · 1.12 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
51
52
53
54
55
56
57
58
59
60
61
62
volumes:
bundle:
file_uploads:
networks:
shared:
name: todolist_network
external: true
x-app: &app
build:
context: .
dockerfile: Dockerfile
target: dev
# args:
# ARCH: arm64
# BUNDLE_WITHOUT: development:test
image: todolistapi
tmpfs:
- /tmp
- /app/tmp/pids
x-backend: &backend
<<: *app
stdin_open: true
tty: true
volumes:
- .:/var/www/todolistapi
- ./.bash_history.docker:/root/.bash_history
- bundle:/var/www/todolistapi/vendor/bundle
- file_uploads:/var/www/todolistapi/public/uploads
environment:
RAILS_ENV: ${RAILS_ENV:-development}
DB_HOST: postgres
# AWS_ACCESS_KEY_ID:
# AWS_SECRET_ACCESS_KEY:
# AWS_DEFAULT_REGION:
# AWS_REGION:
depends_on:
- postgres
networks:
- default
- shared
services:
runner:
<<: *backend
command: bash
app:
<<: *backend
command: bin/rails s -b 0.0.0.0
ports:
- 3000:3000
postgres:
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: postgres
# ports:
# - 5432:5432