From bf1db428f6cd9611574d09e4a8fd99fee8636e03 Mon Sep 17 00:00:00 2001 From: nutomic Date: Mon, 9 Mar 2020 16:50:28 +0000 Subject: Move volumes into subfolder (ref #474) (#23) Change ports and container names Move volumes into subfolder (ref #474) Merge pull request #587 from StaticallyTypedRice/patch-2 Clarify that content violating this code of conduct will likely be removed. Clarify that content violating this code of conduct will likely be removed. Lemmy has a general policy of removing any content that violates the rules whenever possible, which is typically a good thing, and I felt it important to mention that in the code of conduct. Co-authored-by: Felix Co-authored-by: Dessalines Co-authored-by: Richie Zhang <12566991+StaticallyTypedRice@users.noreply.github.com> --- docker/dev/docker-compose.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'docker/dev') diff --git a/docker/dev/docker-compose.yml b/docker/dev/docker-compose.yml index 987be4d5..64ba1db4 100644 --- a/docker/dev/docker-compose.yml +++ b/docker/dev/docker-compose.yml @@ -1,15 +1,16 @@ version: '3.3' services: - lemmy_db: + postgres: image: postgres:12-alpine environment: - POSTGRES_USER=lemmy - POSTGRES_PASSWORD=password - POSTGRES_DB=lemmy volumes: - - lemmy_db:/var/lib/postgresql/data + - ./volumes/postgres:/var/lib/postgresql/data restart: always + lemmy: build: context: ../../ @@ -20,22 +21,22 @@ services: volumes: - ../lemmy.hjson:/config/config.hjson:ro depends_on: - - lemmy_db - lemmy_pictshare: + - postgres + - pictshare + - iframely + + pictshare: image: shtripok/pictshare:latest ports: - "127.0.0.1:8537:80" volumes: - - lemmy_pictshare:/usr/share/nginx/html/data + - ./volumes/pictshare:/usr/share/nginx/html/data restart: always - lemmy_iframely: + + iframely: image: dogbin/iframely:latest ports: - - "127.0.0.1:8061:8061" + - "127.0.0.1:8061:80" volumes: - ../iframely.config.local.js:/iframely/config.local.js:ro restart: always -volumes: - lemmy_db: - lemmy_pictshare: - lemmy_iframely: -- cgit v1.2.3