Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

update: docker-compose.yaml

LinkinStar94656331e642
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 2037f273..7eb9f3d1 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -2,13 +2,19 @@ version: "3.1"
services:
answer:
image: github.com/segmentfault/answer
+ ports:
+ - '9080:80'
+ restart: on-failure
volumes:
- data:/data
- restart: on-failure
- ports:
- - 9080:80
+ depends_on:
+ - db
+ links:
+ - db
db:
image: mysql:5.7
+ ports:
+ - '13306:3306'
restart: on-failure
environment:
MYSQL_DATABASE: answer
@@ -19,5 +25,5 @@ services:
- db:/var/lib/mysql
volumes:
- answer:
+ data:
db: