fix etherpad injoignable
This commit is contained in:
@@ -66,14 +66,22 @@ services:
|
||||
retries: 5
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
etherpad:
|
||||
image: etherpad/etherpad
|
||||
image: etherpad/etherpad:1.9.7
|
||||
ports:
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- ../doodlestudent/api/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
||||
networks:
|
||||
- app-network
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "node -e \"require('http').get('http://127.0.0.1:9001', res => { process.exit(res.statusCode===200?0:1) }).on('error', ()=>process.exit(1))\""]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
start_period: 15s
|
||||
retries: 5
|
||||
|
||||
mail:
|
||||
image: bytemark/smtp
|
||||
restart: always
|
||||
@@ -82,7 +90,7 @@ services:
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
networks:
|
||||
app-network:
|
||||
#external: false
|
||||
name: app-network
|
||||
networks: # Declare the network to be used by the services
|
||||
app-network: # Is a user-defined network
|
||||
#external: false # If true, Docker Compose will look for an existing network with the same name and use it. If false or not specified, Docker Compose will create a new network.
|
||||
name: app-network #Name of the network (optional, Docker Compose will generate one if not provided)
|
||||
Reference in New Issue
Block a user