mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 03:07:47 +00:00
Udpate docker-compose file. refactor services and network
This commit is contained in:
112
docker-compose.dev.yml
Normal file
112
docker-compose.dev.yml
Normal file
@@ -0,0 +1,112 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
dev:
|
||||
container_name: dev
|
||||
image: mcr.microsoft.com/devcontainers/base:ubuntu
|
||||
volumes:
|
||||
- ../:/workspaces:cached
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
#network_mode: service:db
|
||||
links:
|
||||
- "api:postgrest"
|
||||
- "db:database"
|
||||
#- "web_dev:web_dev"
|
||||
command: sleep infinity
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:latest
|
||||
container_name: pgadmin
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- data:/var/lib/pgadmin
|
||||
- ./pgadmin_servers.json:/servers.json:ro
|
||||
links:
|
||||
- "db:database"
|
||||
ports:
|
||||
- 5050:5050
|
||||
environment:
|
||||
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
|
||||
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
|
||||
- PGADMIN_LISTEN_ADDRESS=0.0.0.0
|
||||
- PGADMIN_LISTEN_PORT=5050
|
||||
- PGADMIN_SERVER_JSON_FILE=/servers.json
|
||||
- PGADMIN_DISABLE_POSTFIX=true
|
||||
depends_on:
|
||||
- db
|
||||
logging:
|
||||
options:
|
||||
max-size: 10m
|
||||
|
||||
swagger:
|
||||
image: swaggerapi/swagger-ui
|
||||
container_name: swagger
|
||||
restart: unless-stopped
|
||||
links:
|
||||
- "api:postgrest"
|
||||
ports:
|
||||
- "8181:8080"
|
||||
expose:
|
||||
- "8080"
|
||||
environment:
|
||||
- API_URL=http://api:3000/
|
||||
depends_on:
|
||||
- db
|
||||
- api
|
||||
logging:
|
||||
options:
|
||||
max-size: 10m
|
||||
|
||||
tests:
|
||||
image: xbgmsharp/postgsail-tests
|
||||
build:
|
||||
context: ./tests
|
||||
dockerfile: Dockerfile
|
||||
container_name: tests
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./tests:/mnt
|
||||
working_dir: /mnt
|
||||
command: 'bash tests.sh'
|
||||
links:
|
||||
- "api:postgrest"
|
||||
env_file: .env
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- PGPASSWORD=${POSTGRES_PASSWORD}
|
||||
- PGSAIL_API_URL=${PGSAIL_API_URL}
|
||||
depends_on:
|
||||
- db
|
||||
- api
|
||||
logging:
|
||||
options:
|
||||
max-size: 10m
|
||||
|
||||
web_dev:
|
||||
image: xbgmsharp/postgsail-vuestic:dev
|
||||
build:
|
||||
context: https://github.com/xbgmsharp/vuestic-postgsail.git#live
|
||||
dockerfile: Dockerfile_dev
|
||||
container_name: web_dev
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
links:
|
||||
- "api:postgrest"
|
||||
ports:
|
||||
- 8080:8080
|
||||
environment:
|
||||
- VITE_PGSAIL_URL=${PGSAIL_API_URL}
|
||||
- VITE_APP_INCLUDE_DEMOS=false
|
||||
- VITE_APP_BUILD_VERSION=true
|
||||
- VITE_APP_TITLE=${VITE_APP_TITLE}
|
||||
depends_on:
|
||||
- db
|
||||
- api
|
||||
logging:
|
||||
options:
|
||||
max-size: 10m
|
||||
|
||||
volumes:
|
||||
data: {}
|
Reference in New Issue
Block a user