-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 965 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 965 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
42
43
44
45
46
version: '3'
services:
postgres:
image: postgres:9.6
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=eschop
- POSTGRES_PASSWORD=eschop
volumes:
- database_folder:/var/lib/postgresql/data/pgdata
restart: always
networks:
- eschop_network
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
environment:
- RAILS_SERVE_STATIC_FILES=true
# - RAILS_ENV=production
- DATABASE_PASSWORD=eschop
- DATABASE_USER=eschop
- DATABASE_NAME=eschop
- DATABASE_HOST=postgres
restart: always
env_file:
- .env
volumes:
- public_folder:/eschop/public
ports:
- "3000:3000"
networks:
- eschop_network
depends_on:
- postgres
networks:
eschop_network:
# Add your volumes
volumes:
public_folder:
external:
name: eschop_public
database_folder:
external:
name: eschop_database