-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
41 lines (38 loc) · 1.07 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
services:
http2sql:
build:
context: .
dockerfile: dockerfile
image: ghcr.io/excoffierleonard/http2sql
container_name: http2sql-app
restart: unless-stopped
depends_on:
- db
environment:
DATABASE_URL: ${DATABASE_URL:-mysql://http2sql:http2sql@db:3306/http2sql}
ports:
- "${HTTP2SQL_SERVER_PORT:-8080}:8080"
networks:
- http2sql
# Here MariaDB is used as an example of a database service for devlopment purposes, in production you may use an external database service and delete this section.
db:
image: mariadb
container_name: http2sql-db
restart: unless-stopped
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
MARIADB_DATABASE: ${HTTP2SQL_DB_NAME:-http2sql}
MARIADB_USER: ${HTTP2SQL_DB_USER:-http2sql}
MARIADB_PASSWORD: ${HTTP2SQL_DB_PASSWORD:-http2sql}
ports:
- "${HTTP2SQL_DB_PORT:-3306}:3306"
volumes:
- http2sql-db:/var/lib/mysql
networks:
- http2sql
volumes:
http2sql-db:
name: http2sql-db
networks:
http2sql:
name: http2sql