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

77 lines
2.3 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
2019-02-15 18:59:31 -05:00
# Database setup
- UXBOX_DATABASE_USERNAME="uxbox"
- UXBOX_DATABASE_PASSWORD="uxbox_postgres_password"
- UXBOX_DATABASE_NAME="uxbox"
- UXBOX_DATABASE_SERVER="db"
- UXBOX_DATABASE_PORT=5432
2019-02-15 18:59:31 -05:00
# 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
- UXBOX_SECRET=""
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