Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- backend-node:
- build:
- context: ./backend-node
- container_name: myapp-backend-node
- depends_on:
- database-postgres:
- condition: service_started
- ports:
- - mode: ingress
- target: 3000
- published: "3000"
- protocol: tcp
- restart: always
- database-postgres:
- container_name: myapp-db-postgres
- env_file:
- - environment.env
- image: postgres:14.4-alpine
- networks:
- backend-database: null
- postgres-adminer: null
- ports:
- - mode: ingress
- target: 5432
- published: "5432"
- protocol: tcp
- restart: always
- volumes:
- - type: bind
- source: ./volumes/postgres-data
- target: /var/lib/postgresql/data
- - type: bind
- source: ./volumes/postgres-init
- target: /docker-entrypoint-initdb.d
- db-admin-adminer:
- container_name: myapp-dbadmin-adminer
- depends_on:
- database-postgres:
- condition: service_started
- env_file:
- - environment.env
- image: adminer:latest
- networks:
- postgres-adminer: null
- ports:
- - mode: ingress
- target: 8080
- published: "8090"
- protocol: tcp
- frontend-react:
- build:
- context: ./frontend-react
- container_name: myapp-frontend-react
- depends_on:
- backend-node:
- condition: service_started
- database-postgres:
- condition: service_started
- networks:
- frontend-backend: null
- ports:
- - mode: ingress
- target: 80
- published: "8000"
- protocol: tcp
- restart: always
- networks:
- backend-database: {}
- frontend-backend: {}
- postgres-adminer: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement