mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
infra: add postgres and adminer to development docker compose
This commit is contained in:
1 parent
e449f9987b
commit
4cf79a164c
2 files changed
+22
-1
No files matched your search
@@ -25,6 +25,7 @@ pids
|
||||
*.seed
|
||||
*.pid.lock
|
||||
data
|
||||
postgres-data
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
+21
-1
@@ -22,7 +22,6 @@ services:
|
||||
|
||||
db:
|
||||
image: mongo:6
|
||||
restart: always
|
||||
networks:
|
||||
- internal
|
||||
ports:
|
||||
@@ -30,6 +29,26 @@ services:
|
||||
volumes:
|
||||
- ./data:/data/db
|
||||
|
||||
postgres:
|
||||
image: postgres:18.6
|
||||
networks:
|
||||
- internal
|
||||
ports:
|
||||
- 5173:5173
|
||||
volumes:
|
||||
- ./postgres-data:/var/lib/postgresql
|
||||
environment:
|
||||
POSTGRES_USER: commander
|
||||
POSTGRES_DB: odyssey-dev
|
||||
POSTGRES_PASSWORD: mysecretpassword
|
||||
|
||||
adminer:
|
||||
image: adminer
|
||||
networks:
|
||||
- internal
|
||||
ports:
|
||||
- 18080:8080
|
||||
|
||||
base:
|
||||
image: linuxodyssey/quest-base
|
||||
networks:
|
||||
@@ -37,6 +56,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./quests/Dockerfile
|
||||
command: exit 0
|
||||
extra_hosts:
|
||||
- 'host.docker.internal:host-gateway'
|
||||
labels:
|
||||
|
||||
Reference in new issue
Block a user