Add docker compose dev file
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
go_build_trikotwaschliste
|
||||
/.idea
|
||||
|
26
.idea/workspace.xml
generated
26
.idea/workspace.xml
generated
@@ -2,13 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="52fd0845-10c0-4055-866d-7eb68e0b1470" name="Default Changelist" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/database/mainpage.go" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/handler/mainpage.go" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/models/washitem.go" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/routes/routes.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/go.mod" beforeDir="false" afterPath="$PROJECT_DIR$/go.mod" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/main.go" beforeDir="false" afterPath="$PROJECT_DIR$/main.go" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@@ -77,25 +71,25 @@
|
||||
<screen x="0" y="0" width="1920" height="1080" />
|
||||
</state>
|
||||
<state x="746" y="367" key="FileChooserDialogImpl/0.0.1920.1080@0.0.1920.1080" timestamp="1602151353186" />
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.bottom" timestamp="1602152855261">
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.bottom" timestamp="1602153769800">
|
||||
<screen x="0" y="0" width="1920" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.bottom/0.0.1920.1080@0.0.1920.1080" timestamp="1602152855261" />
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.center" timestamp="1602152855260">
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.bottom/0.0.1920.1080@0.0.1920.1080" timestamp="1602153769800" />
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.center" timestamp="1602153769799">
|
||||
<screen x="0" y="0" width="1920" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.center/0.0.1920.1080@0.0.1920.1080" timestamp="1602152855260" />
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.left" timestamp="1602152855260">
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.center/0.0.1920.1080@0.0.1920.1080" timestamp="1602153769799" />
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.left" timestamp="1602153769799">
|
||||
<screen x="0" y="0" width="1920" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.left/0.0.1920.1080@0.0.1920.1080" timestamp="1602152855260" />
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.right" timestamp="1602152855261">
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.left/0.0.1920.1080@0.0.1920.1080" timestamp="1602153769799" />
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.right" timestamp="1602153769799">
|
||||
<screen x="0" y="0" width="1920" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.right/0.0.1920.1080@0.0.1920.1080" timestamp="1602152855261" />
|
||||
<state x="598" y="373" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1602151926873">
|
||||
<state width="1872" height="278" key="GridCell.Tab.0.right/0.0.1920.1080@0.0.1920.1080" timestamp="1602153769799" />
|
||||
<state x="599" y="347" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1602153639024">
|
||||
<screen x="0" y="0" width="1920" height="1080" />
|
||||
</state>
|
||||
<state x="598" y="373" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser/0.0.1920.1080@0.0.1920.1080" timestamp="1602151926873" />
|
||||
<state x="599" y="347" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser/0.0.1920.1080@0.0.1920.1080" timestamp="1602153639024" />
|
||||
</component>
|
||||
</project>
|
71
docker-compose_dev.yml
Normal file
71
docker-compose_dev.yml
Normal file
@@ -0,0 +1,71 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: test@schoff.it
|
||||
PGADMIN_DEFAULT_PASSWORD: example
|
||||
restart: always
|
||||
volumes:
|
||||
- pgadmin-data:/var/lib/pgadmin
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# http (with redirect)
|
||||
- "traefik.http.routers.pgadmin_http.entrypoints=web"
|
||||
- "traefik.http.routers.pgadmin_http.rule=Host(`pgadmin.dev.duckduckfuck.com`)"
|
||||
- "traefik.http.routers.pgadmin_http.middlewares=https_redirect"
|
||||
|
||||
# https
|
||||
- "traefik.http.routers.pgadmin_https.rule=Host(`pgadmin.dev.duckduckfuck.com`)"
|
||||
- "traefik.http.routers.pgadmin_https.entrypoints=websecure"
|
||||
- "traefik.http.routers.pgadmin_https.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.pgadmin_https.loadbalancer.server.port=80"
|
||||
|
||||
networks:
|
||||
#- shared-traefik
|
||||
- shared-pgadmin
|
||||
|
||||
web:
|
||||
build: .
|
||||
restart: always
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# http (with redirect)
|
||||
- "traefik.http.routers.goapi_http.entrypoints=web"
|
||||
- "traefik.http.routers.goapi_http.rule=Host(`goapi.dev.duckduckfuck.com`)"
|
||||
- "traefik.http.routers.goapi_http.middlewares=https_redirect"
|
||||
|
||||
# https
|
||||
- "traefik.http.routers.goapi_https.rule=Host(`goapi.dev.duckduckfuck.com`)"
|
||||
- "traefik.http.routers.goapi_https.entrypoints=websecure"
|
||||
- "traefik.http.routers.goapi_https.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.goapi_https.loadbalancer.server.port=8082"
|
||||
networks:
|
||||
#- shared-traefik
|
||||
- shared-web
|
||||
|
||||
postgres-db:
|
||||
image: postgres:11.6
|
||||
restart: always
|
||||
ports:
|
||||
- "8081:5432"
|
||||
environment:
|
||||
POSTGRES_USER: web
|
||||
POSTGRES_PASSWORD: example
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- shared-pgadmin
|
||||
- shared-web
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
pgadmin-data:
|
||||
|
||||
networks:
|
||||
shared-web:
|
||||
#shared-traefik:
|
||||
# external:
|
||||
# name: shared-traefik
|
||||
shared-pgadmin:
|
Reference in New Issue
Block a user