-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.03 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
---
x-database-credentials: &database_credentials
ZANTOP_DATABASE_HOST: zantop_db
ZANTOP_DATABASE_USER: zantop
ZANTOP_DATABASE_PASSWORD: zantop
ZANTOP_DATABASE_PORT: 5432
x-app-config: &app_config
user: "developer"
image: "zantop"
build:
context: .
dockerfile: Dockerfile-development
environment: &rails_dev_environment
<<: *database_credentials
? PRY_HISTORY_FILE
tty: true
stdin_open: true
volumes:
- .:/app:cached
- bundle_cache:/usr/local/bundle
depends_on:
- db
version: '3'
services:
db:
container_name: zantop_db
image: "postgres:13.4-alpine"
environment:
- POSTGRES_USER=zantop
- POSTGRES_PASSWORD=zantop
volumes:
- database_files:/var/lib/postgresql/data
ports:
- "5445:5432"
web:
<<: *app_config
container_name: zantop_web
command: bin/rails server -b 0.0.0.0
environment:
<<: *rails_dev_environment
ports:
- "3000:3000"
networks:
default:
name: zantop_default
volumes:
database_files:
bundle_cache: