-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 916 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 916 Bytes
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
version: '3'
services:
app:
build:
context: .
dockerfile: docker/app/Dockerfile
env_file: .env
ports:
- 3000:3000
volumes:
- .:/workspace:cached
- bundle-volume:/workspace/vendor/bundle
- node-module-volume:/workspace/node_modules
depends_on:
- postgres
command: bash -c 'rm -f ./tmp/pids/server.pid && bin/rails s -b 0.0.0.0'
environment:
- TZ=Asia/Tokyo
stdin_open: true
tty: true
postgres:
image: postgres:15
restart: unless-stopped
volumes:
- postgres-volume:/var/lib/postgresql/data
environment:
POSTGRES_USER: codebase
POSTGRES_PASSWORD: password
ports:
- 5432:5432
command: postgres -c log_destination=stderr -c log_statement=all
logging:
options:
max-size: "10k"
max-file: "5"
volumes:
postgres-volume:
bundle-volume:
node-module-volume: