|
| 1 | +services: |
| 2 | + core: |
| 3 | + image: ghcr.io/defguard/defguard:dev |
| 4 | + environment: |
| 5 | + DEFGUARD_COOKIE_INSECURE: "true" |
| 6 | + DEFGUARD_SECRET_KEY: defguard-secret-key-defguard-secret-key-defguard-secret-key-defguard-secret-key |
| 7 | + DEFGUARD_AUTH_SECRET: defguard-auth-secret |
| 8 | + DEFGUARD_GATEWAY_SECRET: defguard-gateway-secret |
| 9 | + DEFGUARD_YUBIBRIDGE_SECRET: defguard-yubibridge-secret |
| 10 | + DEFGUARD_DB_HOST: db |
| 11 | + DEFGUARD_DB_PORT: 5432 |
| 12 | + DEFGUARD_DB_USER: defguard |
| 13 | + DEFGUARD_DB_PASSWORD: defguard |
| 14 | + DEFGUARD_DB_NAME: defguard |
| 15 | + DEFGUARD_ADOPT_EDGE: "edge1:50051" |
| 16 | + DEFGUARD_ADOPT_GATEWAY: "gateway1:50066" |
| 17 | + depends_on: |
| 18 | + - db |
| 19 | + - gateway1 |
| 20 | + - edge1 |
| 21 | + ports: |
| 22 | + - "8000:8000" |
| 23 | + |
| 24 | + edge1: |
| 25 | + image: ghcr.io/defguard/defguard-proxy:2.0.0-alpha2 |
| 26 | + volumes: |
| 27 | + - ./.volumes/certs2.0/edge1:/etc/defguard/certs |
| 28 | + ports: |
| 29 | + - "8080:8080" |
| 30 | + |
| 31 | + gateway1: |
| 32 | + image: ghcr.io/defguard/gateway:2.0.0-alpha2 |
| 33 | + cap_add: |
| 34 | + - NET_ADMIN |
| 35 | + volumes: |
| 36 | + - ./.volumes/certs2.0/gateway1:/etc/defguard/certs |
| 37 | + ports: |
| 38 | + - "51820:51820/udp" |
| 39 | + environment: |
| 40 | + DEFGUARD_STATS_PERIOD: 10 |
| 41 | + HEALTH_PORT: 55003 |
| 42 | + |
| 43 | + db: |
| 44 | + image: postgres:18-alpine |
| 45 | + environment: |
| 46 | + POSTGRES_DB: defguard |
| 47 | + POSTGRES_USER: defguard |
| 48 | + POSTGRES_PASSWORD: defguard |
| 49 | + volumes: |
| 50 | + - ./.volumes/db2.0:/var/lib/postgresql |
| 51 | + |
| 52 | + mailpit: |
| 53 | + image: axllent/mailpit:latest |
| 54 | + container_name: mailpit |
| 55 | + ports: |
| 56 | + - "8025:8025" # web UI |
| 57 | + - "1025:1025" # SMTP |
| 58 | + |
| 59 | + openldap: |
| 60 | + image: bitnamilegacy/openldap:2.6 |
| 61 | + user: root |
| 62 | + restart: unless-stopped |
| 63 | + environment: |
| 64 | + LDAP_ADMIN_PASSWORD: "pass123" |
| 65 | + ports: |
| 66 | + - "389:1389" |
| 67 | + volumes: |
| 68 | + - ./ldap/entrypoint:/docker-entrypoint-initdb.d:ro |
| 69 | + - ./ldap/init.ldif:/ldifs/init.ldif:ro |
| 70 | + - ./ldap/custom.ldif:/schema/custom.ldif:ro |
| 71 | + - ./volumes/openldap:/bitnami/openldap |
| 72 | + |
| 73 | + phpldapadmin: |
| 74 | + image: osixia/phpldapadmin:0.9.0 |
| 75 | + restart: unless-stopped |
| 76 | + depends_on: |
| 77 | + - openldap |
| 78 | + environment: |
| 79 | + PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'openldap': [{'server': [{'host': 'openldap', 'port': 1389}]}]}]" |
| 80 | + PHPLDAPADMIN_HTTPS: "false" |
| 81 | + ports: |
| 82 | + - "8081:80" |
0 commit comments