diff --git a/docker-compose.yml b/docker-compose.yml index 902a7d2..4a168c0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,19 +1,6 @@ version: "3.8" services: - joplin-postgres: - image: postgres:16 - container_name: joplin-postgres - volumes: - - ./volumes/postgres:/var/lib/postgresql/data - restart: unless-stopped - environment: - - POSTGRES_PASSWORD=7UN@nN9cKdz6NFN& - - POSTGRES_USER=joplin - - POSTGRES_DB=joplin - networks: - - web - joplin: image: joplin/server:latest container_name: joplin @@ -32,6 +19,19 @@ services: networks: - web + joplin-postgres: + image: postgres:16 + container_name: joplin-postgres + volumes: + - ./volumes/postgres:/var/lib/postgresql/data + restart: unless-stopped + environment: + - POSTGRES_PASSWORD=7UN@nN9cKdz6NFN& + - POSTGRES_USER=joplin + - POSTGRES_DB=joplin + networks: + - web + networks: web: external: true