2020-11-15 21:42:02 +00:00
---
title: Manual Outpost deployment in docker-compose
---
To deploy an outpost with docker-compose, use this snippet in your docker-compose file.
You can also run the outpost in a separate docker-compose project, you just have to ensure that the outpost container can reach your application container.
2021-09-21 14:44:05 +01:00
### Proxy outpost
2020-11-15 21:42:02 +00:00
```yaml
version: "3.5"
services:
2021-03-05 13:14:09 +00:00
authentik_proxy:
2021-12-22 16:36:45 +00:00
image: ghcr.io/goauthentik/proxy:stable
2021-09-21 14:44:05 +01:00
# Optionally specify which networks the container should be
# might be needed to reach the core authentik server
# networks:
# - foo
2021-03-05 13:14:09 +00:00
ports:
2021-09-13 21:03:02 +01:00
- 4180:4180
- 4443:4443
# Starting in authentik 2021.9, use the ports below
# - 9000:9000
# - 9443:9443
2021-03-05 13:14:09 +00:00
environment:
AUTHENTIK_HOST: https://your-authentik.tld
AUTHENTIK_INSECURE: "false"
AUTHENTIK_TOKEN: token-generated-by-authentik
2021-09-13 21:05:35 +01:00
# Starting with 2021.9, you can optionally set this too
2021-09-08 19:04:56 +01:00
# when authentik_host for internal communication doesn't match the public URL
# AUTHENTIK_HOST_BROWSER: https://external-domain.tld
2021-09-21 14:44:05 +01:00
```
### LDAP outpost
```yaml
version: "3.5"
services:
authentik_ldap:
2021-12-22 16:36:45 +00:00
image: ghcr.io/goauthentik/ldap:stable
2021-09-21 14:44:05 +01:00
# Optionally specify which networks the container should be
# might be needed to reach the core authentik server
# networks:
# - foo
2021-05-14 10:19:09 +01:00
ports:
- 389:3389
2021-09-21 14:44:05 +01:00
- 636:6636
2021-05-14 10:19:09 +01:00
environment:
AUTHENTIK_HOST: https://your-authentik.tld
AUTHENTIK_INSECURE: "false"
AUTHENTIK_TOKEN: token-generated-by-authentik
2020-11-15 21:42:02 +00:00
```