blob: ca974addcf996a64a64ed15308f3b20e04a38781 [file] [log] [blame]
version: "3"
services:
envoy:
build:
context: ./docker/envoy
image: twpt-server/envoy
ports:
- "10123:8081"
depends_on:
- server
networks:
- backend
restart: unless-stopped
server:
build:
context: .
dockerfile: ./cmd/server/Dockerfile
image: twpt-server/golang-server
entrypoint: ["/sbin/tini", "--", "/server", "--db=root:@tcp(db)/twpt", "--port=10000"]
ports:
- "10124:10000"
depends_on:
- db
networks:
- backend
restart: unless-stopped
db:
image: mariadb
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MARIADB_DATABASE: twpt
networks:
- backend
restart: unless-stopped
networks:
backend: