mkdir lemmy/
cd lemmy/
wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/prod/docker-compose.yml
-wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/prod/env -O .env
-# Edit the .env for custom passwords
+wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/prod/.env
+# Edit the .env if you want custom passwords
docker-compose up -d
```
#### Set up Postgres DB
```
- psql -c "create user rrr with password 'rrr' superuser;" -U postgres
- psql -c 'create database rrr with owner rrr;' -U postgres
+ psql -c "create user lemmy with password 'password' superuser;" -U postgres
+ psql -c 'create database lemmy with owner lemmy;' -U postgres
+ export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
```
#### Running
If you'd like to add translations, take a look a look at the [english translation file](ui/src/translations/en.ts).
-- Languages supported: `en`, `zh`, `fr`, `sv`, `de`, `ru`, `de`
+- Languages supported: English (`en`), Chinese (`zh`), French (`fr`), Swedish (`sv`), German (`de`), Russian (`ru`).
## Credits
-version: '2.4'
+version: '3.3'
services:
lemmy_db:
image: postgres:12-alpine
- restart: always
environment:
- POSTGRES_USER=lemmy
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=lemmy
volumes:
- lemmy_db:/var/lib/postgresql/data
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U lemmy"]
- interval: 5s
- timeout: 5s
- retries: 20
lemmy:
build:
context: ../../
- DATABASE_URL=${DATABASE_URL}
- JWT_SECRET=${JWT_SECRET}
- HOSTNAME=${DOMAIN}
- restart: always
depends_on:
- lemmy_db:
- condition: service_healthy
+ - lemmy_db
volumes:
lemmy_db:
-version: '2.4'
+version: '3.3'
services:
lemmy_db:
image: postgres:12-alpine
- restart: always
environment:
- POSTGRES_USER=lemmy
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=lemmy
volumes:
- lemmy_db:/var/lib/postgresql/data
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U lemmy"]
- interval: 5s
- timeout: 5s
- retries: 20
lemmy:
image: dessalines/lemmy:v0.0.7.3
- restart: always
ports:
- "8536:8536"
environment:
- DATABASE_URL=${DATABASE_URL}
- JWT_SECRET=${JWT_SECRET}
- HOSTNAME=${DOMAIN}
- restart: always
depends_on:
- lemmy_db:
- condition: service_healthy
+ - lemmy_db
volumes:
lemmy_db: