version: '3' services: tiktak: build: . # CI (.gitea/workflows/build-and-push.yml) pushes only images matching # git.itqdev.xyz/4x10m/* -- without this line the build job fails. image: git.itqdev.xyz/4x10m/tiktak:${IMAGE_TAG:-latest} ports: - "5000:4000" restart: always volumes: - ./public:/app/public depends_on: - db db: image: mysql:8.0.17 restart: always # NOTE: not published to the host on purpose -- keep it that way. volumes: - ./db_data:/var/lib/mysql environment: # Rotated. Keep in sync with the DSN in main.go. # Only applied when ./db_data is created from scratch! MYSQL_ROOT_PASSWORD: cRazy_P4ssw0rd_MeOw_Me0W_676767676767 MYSQL_DATABASE: tiktak