forked from max06/nodebb-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (31 loc) · 1.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
version: '3'
services:
app:
build:
context: .
dockerfile: ./Dockerfile
depends_on:
- redis
environment:
database: redis
redis__host: redis
url: "http://127.0.0.1:4567"
ports:
- 4567:4567
# Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
# cap_add:
# - SYS_PTRACE
# security_opt:
# - seccomp:unconfined
# entrypoint: /bin/sh -c echo Container started ; while sleep 1; do :; done
redis:
image: redis:latest
expose:
- 6379
volumes:
- ./redis:/data
entrypoint: ["redis-server", "--appendonly", "yes"]