2020-04-19 12:36:48 -05:00
|
|
|
version: "3"
|
2019-09-20 10:31:03 -05:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
config:
|
2021-10-14 05:07:14 -05:00
|
|
|
- subnet: 172.177.9.0/24
|
2019-09-20 10:31:03 -05:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres_data:
|
|
|
|
user_data:
|
|
|
|
|
|
|
|
services:
|
2019-12-13 06:51:56 -05:00
|
|
|
main:
|
2021-10-20 04:18:28 -05:00
|
|
|
profiles: ["full"]
|
2019-09-20 10:31:03 -05:00
|
|
|
privileged: true
|
2020-12-02 03:39:39 -05:00
|
|
|
image: "penpotapp/devenv:latest"
|
2020-09-21 09:02:37 -05:00
|
|
|
build:
|
|
|
|
context: "."
|
2020-11-10 06:41:20 -05:00
|
|
|
container_name: "penpot-devenv-main"
|
2019-09-20 10:31:03 -05:00
|
|
|
stop_signal: SIGINT
|
2020-04-19 12:36:48 -05:00
|
|
|
|
2019-09-20 10:31:03 -05:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
2020-04-19 12:36:48 -05:00
|
|
|
- redis
|
|
|
|
|
2019-09-20 10:31:03 -05:00
|
|
|
volumes:
|
2020-11-10 06:41:20 -05:00
|
|
|
- "user_data:/home/penpot/"
|
|
|
|
- "${PWD}:/home/penpot/penpot"
|
2019-09-20 10:31:03 -05:00
|
|
|
|
|
|
|
ports:
|
2020-03-29 07:33:54 -05:00
|
|
|
- 3447:3447
|
|
|
|
- 3448:3448
|
2019-09-20 10:31:03 -05:00
|
|
|
- 3449:3449
|
|
|
|
- 6060:6060
|
2020-07-22 06:57:37 -05:00
|
|
|
- 6061:6061
|
2019-11-22 12:03:54 -05:00
|
|
|
- 9090:9090
|
2019-09-20 10:31:03 -05:00
|
|
|
|
|
|
|
environment:
|
2020-12-02 03:39:39 -05:00
|
|
|
- EXTERNAL_UID=${CURRENT_USER_ID}
|
2021-05-04 13:31:32 -05:00
|
|
|
- PENPOT_SECRET_KEY=super-secret-devenv-key
|
2021-01-31 20:19:57 -05:00
|
|
|
# STMP setup
|
|
|
|
- PENPOT_SMTP_ENABLED=true
|
|
|
|
- PENPOT_SMTP_DEFAULT_FROM=no-reply@example.com
|
|
|
|
- PENPOT_SMTP_DEFAULT_REPLY_TO=no-reply@example.com
|
|
|
|
- PENPOT_SMTP_HOST=mailer
|
|
|
|
- PENPOT_SMTP_PORT=1025
|
|
|
|
- PENPOT_SMTP_USERNAME=
|
|
|
|
- PENPOT_SMTP_PASSWORD=
|
|
|
|
- PENPOT_SMTP_SSL=false
|
|
|
|
- PENPOT_SMTP_TLS=false
|
2021-11-10 09:53:54 -05:00
|
|
|
- PENPOT_FLAGS="enable-cors enable-insecure-register enable-terms-and-privacy-checkbox"
|
2021-10-20 04:18:28 -05:00
|
|
|
|
|
|
|
# LDAP setup
|
|
|
|
- PENPOT_LDAP_HOST=ldap
|
|
|
|
- PENPOT_LDAP_PORT=10389
|
|
|
|
- PENPOT_LDAP_SSL=false
|
|
|
|
- PENPOT_LDAP_STARTTLS=false
|
|
|
|
- PENPOT_LDAP_BASE_DN=ou=people,dc=planetexpress,dc=com
|
|
|
|
- PENPOT_LDAP_BIND_DN=cn=admin,dc=planetexpress,dc=com
|
|
|
|
- PENPOT_LDAP_BIND_PASSWORD=GoodNewsEveryone
|
|
|
|
- PENPOT_LDAP_ATTRS_USERNAME=uid
|
|
|
|
- PENPOT_LDAP_ATTRS_EMAIL=mail
|
|
|
|
- PENPOT_LDAP_ATTRS_FULLNAME=cn
|
|
|
|
- PENPOT_LDAP_ATTRS_PHOTO=jpegPhoto
|
|
|
|
|
|
|
|
backend:
|
|
|
|
profiles: ["backend"]
|
|
|
|
privileged: true
|
|
|
|
image: "penpotapp/devenv:latest"
|
|
|
|
build:
|
|
|
|
context: "."
|
|
|
|
container_name: "penpot-backend"
|
|
|
|
stop_signal: SIGINT
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- "user_data:/home/penpot/"
|
|
|
|
- "${PWD}:/home/penpot/penpot"
|
|
|
|
|
|
|
|
ports:
|
|
|
|
- 6060:6060
|
|
|
|
- 6061:6061
|
|
|
|
- 9090:9090
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- EXTERNAL_UID=${CURRENT_USER_ID}
|
|
|
|
- PENPOT_SECRET_KEY=super-secret-devenv-key
|
|
|
|
# STMP setup
|
|
|
|
- PENPOT_SMTP_ENABLED=true
|
|
|
|
- PENPOT_SMTP_DEFAULT_FROM=no-reply@example.com
|
|
|
|
- PENPOT_SMTP_DEFAULT_REPLY_TO=no-reply@example.com
|
|
|
|
- PENPOT_SMTP_HOST=mailer
|
|
|
|
- PENPOT_SMTP_PORT=1025
|
|
|
|
- PENPOT_SMTP_USERNAME=
|
|
|
|
- PENPOT_SMTP_PASSWORD=
|
|
|
|
- PENPOT_SMTP_SSL=false
|
|
|
|
- PENPOT_SMTP_TLS=false
|
|
|
|
- PENPOT_FLAGS="enable-cors"
|
2021-02-18 08:07:13 -05:00
|
|
|
|
2021-01-31 20:19:57 -05:00
|
|
|
# LDAP setup
|
|
|
|
- PENPOT_LDAP_HOST=ldap
|
|
|
|
- PENPOT_LDAP_PORT=10389
|
|
|
|
- PENPOT_LDAP_SSL=false
|
|
|
|
- PENPOT_LDAP_STARTTLS=false
|
|
|
|
- PENPOT_LDAP_BASE_DN=ou=people,dc=planetexpress,dc=com
|
|
|
|
- PENPOT_LDAP_BIND_DN=cn=admin,dc=planetexpress,dc=com
|
|
|
|
- PENPOT_LDAP_BIND_PASSWORD=GoodNewsEveryone
|
2021-02-18 08:07:13 -05:00
|
|
|
- PENPOT_LDAP_ATTRS_USERNAME=uid
|
|
|
|
- PENPOT_LDAP_ATTRS_EMAIL=mail
|
|
|
|
- PENPOT_LDAP_ATTRS_FULLNAME=cn
|
|
|
|
- PENPOT_LDAP_ATTRS_PHOTO=jpegPhoto
|
2019-11-22 12:03:54 -05:00
|
|
|
|
2019-09-20 10:31:03 -05:00
|
|
|
postgres:
|
2020-10-21 05:41:11 -05:00
|
|
|
image: postgres:13
|
2019-12-13 06:51:56 -05:00
|
|
|
command: postgres -c config_file=/etc/postgresql.conf
|
2019-09-20 10:31:03 -05:00
|
|
|
restart: always
|
|
|
|
stop_signal: SIGINT
|
|
|
|
environment:
|
2020-01-20 07:03:01 -05:00
|
|
|
- POSTGRES_INITDB_ARGS=--data-checksums
|
2020-11-10 06:41:20 -05:00
|
|
|
- POSTGRES_DB=penpot
|
|
|
|
- POSTGRES_USER=penpot
|
|
|
|
- POSTGRES_PASSWORD=penpot
|
2019-09-20 10:31:03 -05:00
|
|
|
volumes:
|
2019-12-13 06:51:56 -05:00
|
|
|
- ./files/postgresql.conf:/etc/postgresql.conf
|
|
|
|
- ./files/postgresql_init.sql:/docker-entrypoint-initdb.d/init.sql
|
2019-09-20 10:31:03 -05:00
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2020-04-19 12:36:48 -05:00
|
|
|
|
|
|
|
redis:
|
2021-02-22 16:11:24 -05:00
|
|
|
image: redis:5.0.7
|
2020-11-10 06:41:20 -05:00
|
|
|
hostname: "penpot-devenv-redis"
|
|
|
|
container_name: "penpot-devenv-redis"
|
2020-04-19 12:36:48 -05:00
|
|
|
restart: always
|
2021-01-31 20:19:57 -05:00
|
|
|
|
|
|
|
mailer:
|
|
|
|
image: sj26/mailcatcher:latest
|
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- '1025'
|
|
|
|
ports:
|
|
|
|
- "1080:1080"
|
|
|
|
|
2021-08-19 03:44:08 -05:00
|
|
|
# https://github.com/rroemhild/docker-test-openldap
|
2021-01-31 20:19:57 -05:00
|
|
|
ldap:
|
|
|
|
image: rroemhild/test-openldap:2.1
|
|
|
|
expose:
|
|
|
|
- '10389'
|
|
|
|
- '10636'
|
|
|
|
ports:
|
|
|
|
- "10389:10389"
|
|
|
|
- "10636:10636"
|