Browse Source

Update docker-compose.yml

master
OhYee 4 weeks ago committed by GitHub
parent
commit
0e94a159a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docker-compose.yml

4
docker-compose.yml

@ -4,6 +4,7 @@ services: @@ -4,6 +4,7 @@ services:
nginx:
container_name: nginx
image: nginx:1.19.9
restart: "always"
ports:
- 50001:50001
- 80:80
@ -20,6 +21,7 @@ services: @@ -20,6 +21,7 @@ services:
mongodb:
container_name: mongodb
image: mongo:4.4.5
restart: "always"
volumes:
- ./data:/data/db
- /etc/localtime:/etc/localtime
@ -30,6 +32,7 @@ services: @@ -30,6 +32,7 @@ services:
backend:
container_name: backend
image: ${backendImage}
restart: "always"
environment:
- mongoURI=mongodb:27017
- GODEBUG=netdns=go
@ -48,6 +51,7 @@ services: @@ -48,6 +51,7 @@ services:
frontend:
container_name: frontend
image: ${frontendImage}
restart: "always"
environment:
- backendURI=http://backend:50000
volumes:

Loading…
Cancel
Save