git init
This commit is contained in:
46
docker-compose.yml
Normal file
46
docker-compose.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_DB: toir
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
ports:
|
||||
- "${POSTGRES_PORT:-5432}:5432"
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
|
||||
server:
|
||||
build:
|
||||
context: ./server
|
||||
env_file:
|
||||
- ./server/.env.example
|
||||
environment:
|
||||
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/toir"
|
||||
depends_on:
|
||||
- postgres
|
||||
ports:
|
||||
- "${SERVER_PORT:-3000}:3000"
|
||||
|
||||
db-seed:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: db-seed/Dockerfile
|
||||
environment:
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_DB: toir
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
client:
|
||||
build:
|
||||
context: ./client
|
||||
depends_on:
|
||||
- server
|
||||
ports:
|
||||
- "${CLIENT_PORT:-8080}:80"
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
Reference in New Issue
Block a user