2019-03-05 13:39:45 +01:00
|
|
|
version: '3'
|
2017-01-19 22:56:45 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
shlink_nginx:
|
|
|
|
container_name: shlink_nginx
|
2021-02-13 11:39:51 +01:00
|
|
|
image: nginx:1.19.6-alpine
|
2017-01-19 22:56:45 +01:00
|
|
|
ports:
|
|
|
|
- "8000:80"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
2017-01-21 20:12:12 +01:00
|
|
|
- ./docs:/home/shlink/www/public/docs
|
2019-03-05 13:39:45 +01:00
|
|
|
- ./data/infra/vhost.conf:/etc/nginx/conf.d/default.conf
|
2017-01-19 22:56:45 +01:00
|
|
|
links:
|
|
|
|
- shlink_php
|
|
|
|
|
|
|
|
shlink_php:
|
|
|
|
container_name: shlink_php
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./data/infra/php.Dockerfile
|
2022-01-15 16:52:48 +01:00
|
|
|
ports:
|
|
|
|
- '8888:8888'
|
2017-01-19 22:56:45 +01:00
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/php.ini:/usr/local/etc/php/php.ini
|
|
|
|
links:
|
2021-12-11 10:25:58 +01:00
|
|
|
- shlink_db_mysql
|
2019-03-05 13:39:45 +01:00
|
|
|
- shlink_db_postgres
|
2019-10-06 11:21:41 +02:00
|
|
|
- shlink_db_maria
|
2020-02-03 21:20:40 +01:00
|
|
|
- shlink_db_ms
|
2019-08-07 16:07:40 +02:00
|
|
|
- shlink_redis
|
2020-03-14 19:47:22 +01:00
|
|
|
- shlink_mercure
|
2020-04-25 13:44:09 +02:00
|
|
|
- shlink_mercure_proxy
|
2021-12-11 16:19:38 +01:00
|
|
|
- shlink_rabbitmq
|
2020-02-15 20:28:32 +01:00
|
|
|
environment:
|
|
|
|
LC_ALL: C
|
2021-12-05 15:16:41 +01:00
|
|
|
extra_hosts:
|
|
|
|
- 'host.docker.internal:host-gateway'
|
2017-01-19 22:56:45 +01:00
|
|
|
|
2020-05-02 12:04:42 +02:00
|
|
|
shlink_swoole_proxy:
|
|
|
|
container_name: shlink_swoole_proxy
|
2021-02-13 11:39:51 +01:00
|
|
|
image: nginx:1.19.6-alpine
|
2020-05-02 12:04:42 +02:00
|
|
|
ports:
|
|
|
|
- "8002:80"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/swoole_proxy_vhost.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
links:
|
|
|
|
- shlink_swoole
|
|
|
|
|
2018-11-24 08:43:48 +01:00
|
|
|
shlink_swoole:
|
|
|
|
container_name: shlink_swoole
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./data/infra/swoole.Dockerfile
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2019-11-01 09:52:56 +01:00
|
|
|
- "9001:9001"
|
2018-11-24 08:43:48 +01:00
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink
|
2019-12-17 21:20:24 +01:00
|
|
|
- ./data/infra/php.ini:/usr/local/etc/php/php.ini
|
2018-11-24 08:43:48 +01:00
|
|
|
links:
|
2021-12-11 10:25:58 +01:00
|
|
|
- shlink_db_mysql
|
2019-03-05 13:39:45 +01:00
|
|
|
- shlink_db_postgres
|
2019-10-06 11:21:41 +02:00
|
|
|
- shlink_db_maria
|
2020-02-03 21:20:40 +01:00
|
|
|
- shlink_db_ms
|
2019-08-07 16:07:40 +02:00
|
|
|
- shlink_redis
|
2020-03-14 19:47:22 +01:00
|
|
|
- shlink_mercure
|
2020-04-25 13:44:09 +02:00
|
|
|
- shlink_mercure_proxy
|
2021-12-11 16:19:38 +01:00
|
|
|
- shlink_rabbitmq
|
2020-02-03 21:20:40 +01:00
|
|
|
environment:
|
|
|
|
LC_ALL: C
|
2021-12-05 15:16:41 +01:00
|
|
|
extra_hosts:
|
|
|
|
- 'host.docker.internal:host-gateway'
|
2018-11-24 08:43:48 +01:00
|
|
|
|
2022-08-21 13:19:27 +02:00
|
|
|
shlink_roadrunner:
|
|
|
|
container_name: shlink_roadrunner
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./data/infra/roadrunner.Dockerfile
|
|
|
|
ports:
|
|
|
|
- "8800:8080"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink
|
|
|
|
- ./data/infra/php.ini:/usr/local/etc/php/php.ini
|
|
|
|
links:
|
|
|
|
- shlink_db_mysql
|
|
|
|
- shlink_db_postgres
|
|
|
|
- shlink_db_maria
|
|
|
|
- shlink_db_ms
|
|
|
|
- shlink_redis
|
|
|
|
- shlink_mercure
|
|
|
|
- shlink_mercure_proxy
|
|
|
|
- shlink_rabbitmq
|
|
|
|
environment:
|
|
|
|
LC_ALL: C
|
|
|
|
extra_hosts:
|
|
|
|
- 'host.docker.internal:host-gateway'
|
|
|
|
|
2021-12-11 10:25:58 +01:00
|
|
|
shlink_db_mysql:
|
|
|
|
container_name: shlink_db_mysql
|
2019-03-05 13:39:45 +01:00
|
|
|
image: mysql:5.7
|
2017-01-19 22:56:45 +01:00
|
|
|
ports:
|
|
|
|
- "3307:3306"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/database:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
|
|
|
MYSQL_DATABASE: shlink
|
2019-03-05 13:39:45 +01:00
|
|
|
|
|
|
|
shlink_db_postgres:
|
|
|
|
container_name: shlink_db_postgres
|
2020-05-07 10:16:20 +02:00
|
|
|
image: postgres:12.2-alpine
|
2019-03-05 13:39:45 +01:00
|
|
|
ports:
|
|
|
|
- "5433:5432"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/database_pg:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: root
|
|
|
|
POSTGRES_DB: shlink
|
|
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
2019-08-07 16:07:40 +02:00
|
|
|
|
2019-10-06 11:21:41 +02:00
|
|
|
shlink_db_maria:
|
|
|
|
container_name: shlink_db_maria
|
2022-01-21 19:58:56 +01:00
|
|
|
image: mariadb:10.7
|
2019-10-06 11:21:41 +02:00
|
|
|
ports:
|
|
|
|
- "3308:3306"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/database_maria:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
|
|
|
MYSQL_DATABASE: shlink
|
2019-10-20 09:53:11 +02:00
|
|
|
MYSQL_INITDB_SKIP_TZINFO: 1
|
2019-10-06 11:21:41 +02:00
|
|
|
|
2020-02-03 21:20:40 +01:00
|
|
|
shlink_db_ms:
|
|
|
|
container_name: shlink_db_ms
|
|
|
|
image: mcr.microsoft.com/mssql/server:2019-latest
|
|
|
|
ports:
|
|
|
|
- "1433:1433"
|
|
|
|
environment:
|
|
|
|
ACCEPT_EULA: Y
|
|
|
|
SA_PASSWORD: "Passw0rd!"
|
|
|
|
|
2019-08-07 16:07:40 +02:00
|
|
|
shlink_redis:
|
|
|
|
container_name: shlink_redis
|
2020-05-07 10:16:20 +02:00
|
|
|
image: redis:6.0-alpine
|
2019-08-07 16:07:40 +02:00
|
|
|
ports:
|
|
|
|
- "6380:6379"
|
2020-03-14 19:47:22 +01:00
|
|
|
|
2020-04-25 13:44:09 +02:00
|
|
|
shlink_mercure_proxy:
|
|
|
|
container_name: shlink_mercure_proxy
|
2021-02-13 11:39:51 +01:00
|
|
|
image: nginx:1.19.6-alpine
|
2020-04-25 13:44:09 +02:00
|
|
|
ports:
|
|
|
|
- "8001:80"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/mercure_proxy_vhost.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
links:
|
|
|
|
- shlink_mercure
|
|
|
|
|
2020-03-14 19:47:22 +01:00
|
|
|
shlink_mercure:
|
|
|
|
container_name: shlink_mercure
|
2021-10-31 19:42:40 +01:00
|
|
|
image: dunglas/mercure:v0.13
|
2020-03-14 19:47:22 +01:00
|
|
|
ports:
|
|
|
|
- "3080:80"
|
|
|
|
environment:
|
2021-10-31 19:42:40 +01:00
|
|
|
SERVER_NAME: ":80"
|
2022-08-21 13:19:27 +02:00
|
|
|
MERCURE_PUBLISHER_JWT_KEY: mercure_jwt_key_long_enough_to_avoid_error
|
|
|
|
MERCURE_SUBSCRIBER_JWT_KEY: mercure_jwt_key_long_enough_to_avoid_error
|
2021-10-31 19:42:40 +01:00
|
|
|
MERCURE_EXTRA_DIRECTIVES: "cors_origins https://app.shlink.io http://localhost:3000 http://127.0.0.1:3000"
|
2021-12-11 16:19:38 +01:00
|
|
|
|
|
|
|
shlink_rabbitmq:
|
|
|
|
container_name: shlink_rabbitmq
|
|
|
|
image: rabbitmq:3.9-management-alpine
|
|
|
|
ports:
|
|
|
|
- "15672:15672"
|
|
|
|
- "5672:5672"
|
|
|
|
environment:
|
|
|
|
RABBITMQ_DEFAULT_USER: "rabbit"
|
|
|
|
RABBITMQ_DEFAULT_PASS: "rabbit"
|