0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00
penpot/docker/docker-compose.yml

103 lines
2.2 KiB
YAML
Raw Normal View History

version: "3"
volumes:
backend_m2:
backend_data:
2019-07-04 05:38:27 -05:00
postgres_data:
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.177.10.0/24
services:
2019-07-04 05:38:27 -05:00
postgres:
2019-12-09 10:29:26 -05:00
image: postgres:12
restart: always
stop_signal: SIGINT
ports:
- 5432:5432
environment:
- POSTGRES_INITDB_ARGS="--data-checksums"
- POSTGRES_DB=uxbox
- POSTGRES_USER=uxbox
- POSTGRES_PASSWORD=uxbox_postgres_password
volumes:
2019-07-04 05:38:27 -05:00
- postgres_data:/var/lib/postgresql/data
2019-07-04 04:56:52 -05:00
backend:
image: uxbox-backend:latest
restart: always
depends_on:
2019-07-04 05:38:27 -05:00
- postgres
2019-12-09 10:29:26 -05:00
- smtp
ports:
- 6060
volumes:
- backend_data:/srv/uxbox/data
- backend_m2:/root/.m2
2019-12-09 10:29:26 -05:00
environment:
# HTTP setup
- UXBOX_HTTP_SERVER_CORS=*
2019-12-09 10:29:26 -05:00
# Media & Assets
- UXBOX_MEDIA_URI="/media/"
- UXBOX_ASSETS_URI="/static/"
- UXBOX_MEDIA_DIRECTORY="data/media"
- UXBOX_ASSETS_DIRECTORY="data/static"
2019-12-09 10:29:26 -05:00
# Database setup (using the `postgres` container)
- UXBOX_DATABASE_URI="postgresql://postgres/uxbox"
- UXBOX_DATABASE_USERNAME="uxbox"
- UXBOX_DATABASE_PASSWORD="uxbox_postgres_password"
2019-12-09 10:29:26 -05:00
# Mail setup
- UXBOX_EMAIL_REPLY_TO="no-reply@uxbox.io"
- UXBOX_EMAIL_FROM="no-reply@uxbox.io"
2019-12-09 10:29:26 -05:00
# STMP setup (using the `smtp` container)
- UXBOX_SMTP_HOST="smtp"
- UXBOX_SMTP_PORT=25
- UXBOX_SMTP_USER="uxbox"
2019-12-09 10:29:26 -05:00
# - UXBOX_SMTP_PASSWORD=""
- UXBOX_SMTP_SSL=false
- UXBOX_SMTP_TLS=false
- UXBOX_SMTP_ENABLED=false
2019-12-09 10:29:26 -05:00
## Security setup
# Overwrite with a randomy generated string. Mainly used as
# shared key for sign cookies, tokens, etc.
- UXBOX_SECRET="the very secret string"
2019-07-04 04:56:52 -05:00
frontend:
image: uxbox-frontend:latest
restart: always
depends_on:
2019-07-04 04:56:52 -05:00
- backend
ports:
- 8080:8080
volumes:
- backend_data:/srv/uxbox/
2019-07-04 04:56:52 -05:00
frontend-dev:
image: uxbox-frontend-dbg:latest
restart: always
depends_on:
2019-07-04 04:56:52 -05:00
- backend
ports:
- 8081:8080
volumes:
- backend_data:/srv/uxbox/
2019-12-09 10:29:26 -05:00
smtp:
image: mwader/postfix-relay
restart: always
environment:
- POSTFIX_myhostname=smtp.uxbox.io
- OPENDKIM_DOMAINS=smtp.uxbox.io