xxxxxxxxxx
FROM ubuntu:20.04
RUN apt-get update
RUN apt-get install -y wget software-properties-common gnupg2 winbind xvfb
RUN dpkg --add-architecture i386
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key
RUN apt-key add winehq.key
RUN add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
RUN apt-get update
RUN apt-get install -y winehq-stable
RUN apt-get install -y winetricks
RUN apt-get clean -y
RUN apt-get autoremove -y
ENV WINEDEBUG=fixme-all
RUN winetricks msxml6
COPY app /root/catalyst
COPY startup.sh /root/startup.sh
RUN chmod gou+x /root/startup.sh
EXPOSE 9000
CMD ["/root/startup.sh"]
xxxxxxxxxx
# docker-compose.yml
version: '2'
services:
web:
build:
# build from Dockerfile
context: ./Path
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- .:/code
redis:
image: redis
xxxxxxxxxx
version: '3'
services:
web:
build: .
ports:
- "5000:5000"
db:
image: "postgres"
environment:
POSTGRES_PASSWORD: example
xxxxxxxxxx
# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
version: '2'
services:
mariadb:
image: docker.io/bitnami/mariadb:10.6
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_myapp
- MARIADB_DATABASE=bitnami_myapp
myapp:
image: docker.io/bitnami/laravel:10
ports:
- '8000:8000'
environment:
- DB_HOST=mariadb
- DB_PORT=3306
- DB_USERNAME=bn_myapp
- DB_DATABASE=bitnami_myapp
volumes:
- './my-project:/app'
depends_on:
- mariadb
xxxxxxxxxx
version: '2.1'
services:
product:
build: microservices/product-service
mem_limit: 512m
environment:
- SPRING_PROFILES_ACTIVE=docker
recommendation:
build: microservices/recommendation-service
mem_limit: 512m
environment:
- SPRING_PROFILES_ACTIVE=docker
review:
build: microservices/review-service
mem_limit: 512m
environment:
- SPRING_PROFILES_ACTIVE=docker
product-composite:
build: microservices/product-composite-service
mem_limit: 512m
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=docker