https://supertokens.com/ logo
#general
Title
# general
s

ssnxd

02/22/2022, 9:47 AM
Copy code
docker
version: '3.8'
services:
  auth:
    container_name: xxx-auth
    image: supertokens/supertokens-postgresql
    restart: always
    environment:
      POSTGRESQL_CONNECTION_URI: postgresql://xxx:helloworld@localhost:5432/xxx
    ports:
      - "3567:3567"
    depends_on:
      - "db"
  db:
    container_name: xxx-db
    image: postgres
    restart: always
    environment:
      POSTGRES_USER: xxx
      POSTGRES_PASSWORD: helloworld
      POSTGRES_DB: xxx
    ports:
      - "5432:5432"
    volumes:
      - $HOME/Desktop/PostgreSql-Snippets/infile:/infile
      - pg_data:/var/lib/postgresql/data/
volumes:
  pg_data: