2020-04-19 12:36:48 -05:00
|
|
|
version: "3"
|
2019-09-20 10:31:03 -05:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: 172.177.09.0/24
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres_data:
|
|
|
|
user_data:
|
|
|
|
|
|
|
|
services:
|
2019-12-13 06:51:56 -05:00
|
|
|
main:
|
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"
|
2020-06-02 09:14:23 -05:00
|
|
|
- ./files/nginx.conf:/etc/nginx/nginx.conf
|
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:
|
2021-01-28 10:27:18 -05:00
|
|
|
- PENPOT_DATABASE_URI=postgresql://postgres/penpot
|
|
|
|
- PENPOT_DATABASE_USERNAME=penpot
|
|
|
|
- PENPOT_DATABASE_PASSWORD=penpot
|
|
|
|
- PENPOT_REDIS_URI=redis://redis/0
|
2020-12-02 03:39:39 -05:00
|
|
|
- EXTERNAL_UID=${CURRENT_USER_ID}
|
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
|
2020-11-10 06:41:20 -05:00
|
|
|
container_name: "penpot-devenv-postgres"
|
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:
|
2020-09-07 03:56:42 -05:00
|
|
|
image: redis:6
|
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
|