owntracks/docker-compose.yml

45 lines
784 B
YAML
Raw Normal View History

2025-01-19 18:46:23 +01:00
services:
# Go application service
go-app:
build:
context: go/.
args:
- GO111MODULE=on
2025-03-26 22:47:15 +00:00
ports:
- "10.0.1.3:8096:8080"
2025-01-19 18:46:23 +01:00
depends_on:
- db
environment:
2025-03-26 22:47:15 +00:00
- DB_HOST=10.2.0.30
2025-01-19 18:46:23 +01:00
- DB_PORT=3306
- DB_USER=root
- DB_PASSWORD=owntracks
- DB_NAME=owntracks
volumes:
- /etc/localtime:/etc/localtime:ro
restart: always
networks:
default:
2025-03-26 22:47:15 +00:00
monitoring:
ipv4_address: 10.2.0.29
2025-01-19 18:46:23 +01:00
db:
image: mariadb:11
volumes:
- ./mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: owntracks
MYSQL_DATABASE: owntracks
restart: always
networks:
default:
2025-03-26 22:47:15 +00:00
monitoring:
ipv4_address: 10.2.0.30
2025-01-19 18:46:23 +01:00
networks:
2025-03-26 22:47:15 +00:00
monitoring:
2025-01-19 18:46:23 +01:00
external: true