Renamed directories
This commit is contained in:
39
docker-compose.yml
Normal file
39
docker-compose.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
version: '3'
|
||||
|
||||
name: weather
|
||||
services:
|
||||
db:
|
||||
image: postgis/postgis:latest
|
||||
container_name: weather-db
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
POSTGRES_USER: ${DATABASE_USER}
|
||||
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
||||
POSTGRES_DB: ${DATABASE_NAME}
|
||||
volumes:
|
||||
- db:/var/lib/postgresql/data
|
||||
- db_logs:/var/log
|
||||
ports:
|
||||
- "${DATABASE_PORT}:5432"
|
||||
restart: unless-stopped
|
||||
|
||||
service:
|
||||
container_name: weather-service
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${SERVICE_PORT}:${SERVICE_PORT}"
|
||||
build:
|
||||
context: service
|
||||
depends_on:
|
||||
- db
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
db:
|
||||
db_logs:
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: weather-backend
|
||||
Reference in New Issue
Block a user