COPY --from=node /app/ui/dist /app/dist
RUN cd /app/server && cargo build --release
RUN mv /app/server/target/release/lemmy /app/
-EXPOSE 8080
WORKDIR /app/
-
+EXPOSE 8536
cd lemmy
docker-compose up
```
-and goto http://localhost:8080
+and goto http://localhost:8536
### Local Development
#### Requirements
- [Rust](https://www.rust-lang.org/)
cd lemmy
./install.sh
```
-and goto http://localhost:8080
+and goto http://localhost:8536
## Documentation
- [ActivityPub API.md](docs/API.md)
context: .
command: /bin/sh -c /app/lemmy
ports:
- - "8080:8080"
+ - "8536:8536"
environment:
LEMMY_FRONT_END_DIR: /app/dist
DATABASE_URL: postgres://rrr:rrr@db:5432/rrr
fs::StaticFiles::new(front_end_dir()).unwrap()
)
.finish()
- }).bind("0.0.0.0:8080")
+ }).bind("0.0.0.0:8536")
.unwrap()
.start();
- println!("Started http server: 0.0.0.0:8080");
+ println!("Started http server: 0.0.0.0:8536");
let _ = sys.run();
}
-export const endpoint = `${window.location.hostname}:8080`;
+export const endpoint = `${window.location.hostname}:8536`;
export let wsUri = (window.location.protocol=='https:') ? 'wss://' : 'ws://' + endpoint + '/service/ws';