Fixed docker container linking

This commit is contained in:
2023-07-06 10:59:41 -04:00
parent f94b3fe419
commit a352341d3d
8 changed files with 29 additions and 38 deletions

View File

@@ -2,31 +2,30 @@ version: '3'
services:
siren:
image: siren
image: siren:${SIREN_VERSION}
container_name: siren
build:
context: .
dockerfile: ./Dockerfile
args:
- VERSION=${SIREN_VERSION}
volumes:
- ./app:/usr/src/siren
#volumes:
# - ./app:/siren
environment:
DISCORD_TOKEN: ${DISCORD_TOKEN}
DATABASE_URL: jdbc:postgresql://db:5432/${POSTGRES_DB}
DATABASE_USERNAME: ${POSTGRES_USER}
DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}
depends_on:
- db
restart: unless-stopped
db:
image: postgres:latest
container_name: siren_db
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- ./data:/var/lib/postgresql/data
#volumes:
# - ./data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
restart: unless-stopped