mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-07-15 00:14:43 +00:00
add devcontainer config
This commit is contained in:
parent
ea91251002
commit
bcd451e23e
3 changed files with 74 additions and 0 deletions
31
.devcontainer/docker-compose.yml
Normal file
31
.devcontainer/docker-compose.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
version: "3.8"
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
|
||||
services:
|
||||
app:
|
||||
container_name: javadev
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
CONFIG_FORCE_database_host: postgres
|
||||
CONFIG_FORCE_bind: 0.0.0.0
|
||||
volumes:
|
||||
- ../..:/workspaces:cached
|
||||
command: sleep infinity
|
||||
# network_mode: service:postgres
|
||||
ports:
|
||||
- "51000:51000/udp"
|
||||
- "51001:51001/udp"
|
||||
# - "51000:51002"
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: psforever
|
||||
POSTGRES_USER: psforever
|
||||
POSTGRES_DB: psforever
|
||||
Loading…
Add table
Add a link
Reference in a new issue