diff --git a/docker-compose.yml b/docker-compose.yml index 3693b2b..e51c53d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,18 @@ services: + traefik: + build: + context: . + dockerfile: Dockerfile.traefik + ports: + - "80:80" + - "443:443" + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + - ./certificates:/certificates + networks: + - app-network + restart: unless-stopped + app: build: context: . @@ -69,20 +83,6 @@ services: networks: - app-network - traefik: - build: - context: . - dockerfile: Dockerfile.traefik - ports: - - "80:80" - - "443:443" - volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro - - ./certificates:/certificates - networks: - - app-network - restart: unless-stopped - networks: app-network: driver: bridge