Skip to content

Commit

Permalink
fix(build): fix compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxvd committed Aug 6, 2024
1 parent df25ed1 commit e7b0505
Showing 1 changed file with 44 additions and 43 deletions.
87 changes: 44 additions & 43 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@
web:
build: .
links:
- db
- redis
ports:
- "5000:5000"
environment:
PORT: 5000
DATABASE_URL: 'postgres://smartbirds:secret@db:5432/smartbirds'
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 0
volumes:
- ./uploads/files:/app/uploads/files
- ./uploads/tmp:/app/uploads/tmp
- ./public:/app/public
- ./log:/app/log
services:
web:
build: .
links:
- db
- redis
ports:
- "5000:5000"
environment:
PORT: 5000
DATABASE_URL: 'postgres://smartbirds:secret@db:5432/smartbirds'
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 0
volumes:
- ./uploads/files:/app/uploads/files
- ./uploads/tmp:/app/uploads/tmp
- ./public:/app/public
- ./log:/app/log

db:
image: postgres:9.4
environment:
POSTGRES_PASSWORD: 'secret'
POSTGRES_USER: 'smartbirds'
ports:
- "5432:5432"
db:
image: postgres:9.4
environment:
POSTGRES_PASSWORD: 'secret'
POSTGRES_USER: 'smartbirds'
ports:
- "5432:5432"

testdb:
image: postgres:9.4
environment:
POSTGRES_PASSWORD: 'testpass'
POSTGRES_USER: 'testuser'
ports:
- "5434:5432"
testdb:
image: postgres:9.4
environment:
POSTGRES_PASSWORD: 'testpass'
POSTGRES_USER: 'testuser'
ports:
- "5434:5432"

dbadmin:
image: adminer
links:
- db
- testdb
ports:
- "8080:8080"
dbadmin:
image: adminer
links:
- db
- testdb
ports:
- "8080:8080"

redis:
image: redis
ports:
- "6379:6379"
redis:
image: redis
ports:
- "6379:6379"

0 comments on commit e7b0505

Please sign in to comment.