init commit,
This commit is contained in:
46
03_source/api_server.del/docker-compose.yml
Normal file
46
03_source/api_server.del/docker-compose.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
volumes:
|
||||
dbdata:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
node-network:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
postgresdb:
|
||||
image: postgres
|
||||
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=secret
|
||||
ports:
|
||||
- '5432:5432'
|
||||
volumes:
|
||||
- dbdata:/var/lib/postgresql/data
|
||||
networks:
|
||||
- node-network
|
||||
|
||||
mailpit:
|
||||
image: axllent/mailpit
|
||||
ports:
|
||||
- '1025:1025' # SMTP
|
||||
- '8025:8025' # Web UI
|
||||
environment:
|
||||
MP_UI_AUTH: 'admin:password123' # Optional auth
|
||||
MP_SMTP_AUTH: 'admin:password123'
|
||||
MP_SMTP_AUTH_ALLOW_INSECURE: 'true'
|
||||
networks:
|
||||
- node-network
|
||||
|
||||
node-app:
|
||||
build: .
|
||||
image: node-app
|
||||
ports:
|
||||
- '3000:3000'
|
||||
depends_on:
|
||||
- postgresdb
|
||||
- mailpit
|
||||
volumes:
|
||||
- .:/usr/src/node-app
|
||||
networks:
|
||||
- node-network
|
Reference in New Issue
Block a user