Skip to content

Commit 553af86

Browse files
committed
add docker-compose
1 parent 695cc67 commit 553af86

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docker-compose.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: "3.8"
2+
services:
3+
postgres:
4+
image: postgres:13-alpine
5+
command: ["postgres", "-c", "fsync=false", "-c", "full_page_writes=off"]
6+
environment:
7+
POSTGRES_PASSWORD: password
8+
volumes:
9+
- ./tmp/db:/var/lib/postgresql/data
10+
ports:
11+
- "5432:5432"
12+
app:
13+
build:
14+
context: .
15+
dockerfile: app.Dockerfile
16+
command: bash -c "bundle exec puma -C config/puma.rb"
17+
volumes:
18+
- .:/app
19+
depends_on:
20+
- postgres
21+
nginx:
22+
build:
23+
context: .
24+
dockerfile: ./nginx.Dockerfile
25+
depends_on:
26+
- app
27+
ports:
28+
- 80:80

0 commit comments

Comments
 (0)