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

79 lines
2.5 KiB
YAML
Raw Normal View History

version: '2'
volumes:
2019-02-15 22:20:11 -05:00
frontend_data:
backend_data:
db_data:
services:
db:
image: postgres:latest
2019-02-15 22:20:11 -05:00
container_name: db
restart: always
ports:
- "5432:5432"
environment:
- "POSTGRES_DB=uxbox"
- "POSTGRES_USER=uxbox"
- "POSTGRES_PASSWORD=uxbox_postgres_password"
volumes:
2019-02-15 22:20:11 -05:00
- db_data:/var/lib/postgresql/data
2019-02-16 09:55:21 -05:00
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
2019-02-15 22:20:11 -05:00
uxbackend:
build: ./backend
#image: monogramm/uxbox:backend
2019-02-15 22:20:11 -05:00
container_name: uxbackend
#restart: always
depends_on:
2019-02-15 17:11:15 -05:00
- db
ports:
- "6060:6060"
environment:
2019-02-15 18:59:31 -05:00
# HTTP setup
- "UXBOX_HTTP_SERVER_DEBUG=false"
# Database setup
- "UXBOX_DATABASE_USERNAME=uxbox"
- "UXBOX_DATABASE_PASSWORD=uxbox_postgres_password"
2019-02-15 18:59:31 -05:00
- "UXBOX_DATABASE_NAME=uxbox"
- "UXBOX_DATABASE_SERVER=db"
- "UXBOX_DATABASE_PORT=5432"
# Mail setup
- "UXBOX_EMAIL_REPLY_TO=no-reply@uxbox.io"
- "UXBOX_EMAIL_FROM=no-reply@uxbox.io"
# STMP setup
- "UXBOX_SMTP_HOST=localhost"
- "UXBOX_SMTP_PORT=25"
- "UXBOX_SMTP_USER=uxbox"
- "UXBOX_SMTP_PASSWORD=youshouldoverwritethiswithsomethingelse"
- "UXBOX_SMTP_SSL=false"
- "UXBOX_SMTP_TLS=false"
- "UXBOX_SMTP_ENABLED=false"
2019-02-15 18:59:31 -05:00
# Security setup
# WARNING: this is a default secret key and
# it should be overwritten in production env.
- "UXBOX_SECRET=5qjiAn-QUpawUNqGP10UZKklSqbLKcdGY3sJpq0UUACpVXGg2HOFJCBejDWVHskhRyp7iHb4rjOLXX2ZjF-5cw"
2019-02-15 22:20:11 -05:00
volumes:
- /srv/uxbox/backend/resources:/srv/uxbox/resources
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
2019-02-15 22:20:11 -05:00
uxfrontend:
build: ./frontend
#image: monogramm/uxbox:frontend
2019-02-15 22:24:42 -05:00
container_name: uxfrontend
2019-02-16 09:55:21 -05:00
#hostname: uxbox.io
#restart: always
depends_on:
2019-02-15 22:20:11 -05:00
- uxbackend
ports:
- 80:80
environment:
2019-02-16 09:55:21 -05:00
- "API_URL=http://localhost:6060/api/"
#- "API_URL=http://uxbox.io/api/"
2019-02-15 22:20:11 -05:00
volumes:
#- /srv/uxbox/frontend/html:/usr/share/nginx/html
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro