-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose_develop.yml
More file actions
31 lines (28 loc) · 988 Bytes
/
docker-compose_develop.yml
File metadata and controls
31 lines (28 loc) · 988 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
version: '3'
services:
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: mysecretpassword
web:
build: .
command: ["sh", "-c", "bundle exec rails db:create && bundle exec rails db:migrate && bundle exec rails db:seed && bundle exec rails s -p 8537 -b '0.0.0.0'"]
volumes:
- .:/var/www/CosmicDefender
ports:
- "8537:8537"
depends_on:
- db
environment:
POSTGRES_PASSWORD: mysecretpassword # Added to match the database.yml
# RAILS_ENV: production
# RACK_ENV: production
RAILS_ENV: development #=> Change this to development
RACK_ENV: development #=> Change this to development
DATABASE_URL: "postgresql://postgres:mysecretpassword@db:5432/CosmicDefender_development"
GAME_API_PORT: "https://cosmicdefender.jeremyd.net/"
# GAME_API_PORT: "https://cosmicdefender.jeremyduncan.synology.me/"
volumes:
postgres_data: