standardnotes-server/docker-compose.ci.yml

93 lines
2.3 KiB
YAML
Raw Normal View History

services:
2023-02-23 10:44:26 +00:00
mock-event-publisher:
image: standardnotes/mock-event-publisher
ports:
- 3124:3000
environment:
LOG_LEVEL: debug
NODE_ENV: production
VERSION: snjs-test
SNS_TOPIC_ARN: arn:aws:sns:us-east-1:000000000000:payments-local-topic
SNS_ENDPOINT: http://localstack:4566
SNS_DISABLE_SSL: true
SNS_SECRET_ACCESS_KEY: x
SNS_ACCESS_KEY_ID: x
SNS_AWS_REGION: us-east-1
networks:
- standardnotes_self_hosted
2023-02-03 10:26:06 +00:00
server:
build: .
2023-02-07 08:42:40 +00:00
env_file: .github/ci.env
environment:
DB_TYPE: "${DB_TYPE}"
CACHE_TYPE: "${CACHE_TYPE}"
SECONDARY_DB_ENABLED: "${SECONDARY_DB_ENABLED}"
2023-02-07 08:42:40 +00:00
container_name: server-ci
2023-02-06 05:52:11 +00:00
ports:
2023-02-07 13:12:29 +00:00
- 3123:3000
- 3125:3104
2023-02-03 10:26:06 +00:00
volumes:
- ./logs:/var/lib/server/logs
networks:
- standardnotes_self_hosted
2023-02-03 10:26:06 +00:00
2023-02-06 12:35:58 +00:00
localstack:
image: localstack/localstack:1.4
2023-02-07 08:42:40 +00:00
container_name: localstack-ci
2023-02-06 12:35:58 +00:00
expose:
- 4566
restart: unless-stopped
environment:
- SERVICES=sns,sqs
- HOSTNAME_EXTERNAL=localstack
- LS_LOG=warn
volumes:
- ./docker/localstack_bootstrap.sh:/etc/localstack/init/ready.d/localstack_bootstrap.sh
networks:
- standardnotes_self_hosted
2023-02-06 12:35:58 +00:00
db:
2023-02-03 10:26:06 +00:00
image: mysql:8
2023-02-07 08:42:40 +00:00
container_name: db-ci
env_file: .github/ci.env
2023-09-12 10:13:51 +00:00
ports:
2023-02-06 05:52:11 +00:00
- 3306
restart: unless-stopped
2023-02-07 08:35:29 +00:00
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
volumes:
- ./data/mysql:/var/lib/mysql
- ./data/import:/docker-entrypoint-initdb.d
networks:
- standardnotes_self_hosted
secondary_db:
image: mongo:5.0
container_name: secondary_db-ci
2023-09-12 10:13:51 +00:00
ports:
- 27017
restart: unless-stopped
volumes:
- ./data/mongo:/data/db
2023-08-15 11:11:14 +00:00
environment:
MONGO_INITDB_ROOT_USERNAME: standardnotes
MONGO_INITDB_ROOT_PASSWORD: standardnotes
MONGO_INITDB_DATABASE: standardnotes
networks:
- standardnotes_self_hosted
cache:
image: redis:6.0-alpine
2023-02-07 08:42:40 +00:00
container_name: cache-ci
volumes:
- ./data/redis/:/data
2023-09-12 10:13:51 +00:00
ports:
2023-02-06 05:52:11 +00:00
- 6379
restart: unless-stopped
networks:
- standardnotes_self_hosted
networks:
standardnotes_self_hosted:
name: standardnotes_self_hosted