Skip to content

Commit

Permalink
docker-compose support
Browse files Browse the repository at this point in the history
  • Loading branch information
EnergeticBark committed May 21, 2023
1 parent bc9ad01 commit 6b3af46
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Key": "key.pem"
},
"DB": {
"Host": "localhost",
"Host": "mariadb",
"Username": "root",
"Password": "",
"Name": "indigo"
Expand Down
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: "3.8"

services:
app:
image: golang:1.20-alpine
command: sh -c "go get ./... && go run *.go"
ports:
- "80:80"
working_dir: /app
volumes:
- ./:/app
mariadb:
image: mariadb:10.11
volumes:
- ./structure.sql:/docker-entrypoint-initdb.d/structure.sql
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: "1"
MARIADB_DATABASE: indigo

2 comments on commit 6b3af46

@BradenYes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seth, your dockerfile support gave me cancer

@EnergeticBark
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love yourself. :)

Please sign in to comment.