-
When I try to run the docker compose image I get this PHP error: |
Beta Was this translation helpful? Give feedback.
Answered by
Bigbrian5
Feb 28, 2024
Replies: 2 comments 13 replies
-
Do you build the instance with |
Beta Was this translation helpful? Give feedback.
13 replies
-
Sure! gpstracker-mysql:
image: mysql:8.0
container_name: gpstracker-mysql
restart: unless-stopped
volumes:
- ./../storage/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=gpstracker
- MYSQL_PASSWORD=$GTDB_PASSWORD
- MYSQL_DATABASE=gpstracker
command:
- --character-set-server=utf8
- --collation-server=utf8_unicode_ci
networks:
- gpstracker-network
healthcheck:
test: mysqladmin ping -h localhost --password=root
interval: 15s
retries: 15
gpstracker-redis:
image: redis:7.0
container_name: gpstracker-redis
restart: unless-stopped
networks:
- gpstracker-network
healthcheck:
test: redis-cli ping
interval: 5s
retries: 15
gpstracker-app:
image: gpstracker-app:latest
container_name: gpstracker-app
restart: unless-stopped
# depends_on:
# gpstracker-mysql:
# conditon: service_healthy
# gpstracker-redis:
# condition: service_healthy
volumes:
- $DOCKERDIR/appdata/gpstracker/
ports:
- "8091:80"
- "8091:8091"
networks:
- gpstracker-network
- t2_proxy
tty: true
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.gpstracker-rtr.entrypoints=https"
- "traefik.http.routers.gpstracker-rtr.rule=Host(`gpst.$DOMAINNAME_CLOUD_SERVER`)"
- "traefik.http.routers.gpstracker-rtr.tls=true"
- "traefik.http.routers.gpstracker-rtr.tls.certresolver=dns-cloudflare"
## Middlewares
- "traefik.http.routers.gpstracker-rtr.middlewares=chain-no-auth@file"
## HTTP Services
- "traefik.http.routers.gpstracker-rtr.service=gpstracker-svc"
- "traefik.http.services.gpstracker-svc.loadbalancer.server.port=80" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hazza! I have figured it out! I will write a little guide right here and right now! So the first 4 steps stay the same now I have your gps tracker app setup to be behind cloudflare with traefik using labels on the gpstracker-app.
Docker Installation
Clone the repository.
git clone https://github.com/eusonlito/GPS-Tracker.git
[OPTIONAL] Copy file docker/.env.example to .env and configure your own settings which I added to my current .env file for my docker compose stack. The only thing that I changed was the APP_URL variable.
cp docker/.env.example .env
[OPTIONAL] Copy file docker/docker-compose.yml.example to docker/docker-compose.yml and configure your own settings this is where I …