Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>master
parent
fa1788d822
commit
18f59bdb09
@ -1,11 +0,0 @@ |
|||||||
services: |
|
||||||
web: |
|
||||||
build: |
|
||||||
context: angular |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- 4200:4200 |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
- ./angular:/project |
|
||||||
- /project/node_modules |
|
@ -1,10 +0,0 @@ |
|||||||
services: |
|
||||||
web: |
|
||||||
build: |
|
||||||
context: app |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- '80:80' |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
- ./app:/var/www/html/ |
|
@ -1,9 +0,0 @@ |
|||||||
services: |
|
||||||
web: |
|
||||||
build: |
|
||||||
context: app |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- '8000:8000' |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
@ -1,13 +0,0 @@ |
|||||||
services: |
|
||||||
api: |
|
||||||
build: |
|
||||||
context: . |
|
||||||
target: dev-envs |
|
||||||
container_name: fastapi-application |
|
||||||
environment: |
|
||||||
PORT: 8000 |
|
||||||
ports: |
|
||||||
- '8000:8000' |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
restart: "no" |
|
@ -1,16 +0,0 @@ |
|||||||
services: |
|
||||||
redis: |
|
||||||
image: redislabs/redismod |
|
||||||
ports: |
|
||||||
- '6379:6379' |
|
||||||
web: |
|
||||||
build: |
|
||||||
context: . |
|
||||||
target: dev-envs |
|
||||||
stop_signal: SIGINT |
|
||||||
ports: |
|
||||||
- '8000:8000' |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
depends_on: |
|
||||||
- redis |
|
@ -1,10 +0,0 @@ |
|||||||
services: |
|
||||||
web: |
|
||||||
build: |
|
||||||
context: app |
|
||||||
target: dev-envs |
|
||||||
stop_signal: SIGINT |
|
||||||
ports: |
|
||||||
- '8000:8000' |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
Before Width: | Height: | Size: 3.5 KiB |
@ -1,38 +0,0 @@ |
|||||||
services: |
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
restart: always |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
depends_on: ['db'] |
|
||||||
environment: |
|
||||||
- ASPNETCORE_URLS=http://+:8000 |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
|
|
||||||
db: |
|
||||||
image: mariadb:10-focal |
|
||||||
command: '--default-authentication-plugin=mysql_native_password' |
|
||||||
restart: always |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- db-data:/var/lib/mysql |
|
||||||
environment: |
|
||||||
- MYSQL_DATABASE=example |
|
||||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password |
|
||||||
|
|
||||||
proxy: |
|
||||||
build: proxy |
|
||||||
ports: |
|
||||||
- 80:80 |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
|
|
||||||
volumes: |
|
||||||
db-data: |
|
||||||
secrets: |
|
||||||
db-password: |
|
||||||
file: db/password.txt |
|
@ -1,27 +0,0 @@ |
|||||||
services: |
|
||||||
web: |
|
||||||
image: nginx |
|
||||||
volumes: |
|
||||||
- ./nginx/nginx.conf:/tmp/nginx.conf |
|
||||||
environment: |
|
||||||
- FLASK_SERVER_ADDR=backend:9091 |
|
||||||
command: /bin/bash -c "envsubst < /tmp/nginx.conf > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'" |
|
||||||
ports: |
|
||||||
- 80:80 |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
|
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: flask |
|
||||||
target: dev-envs |
|
||||||
stop_signal: SIGINT |
|
||||||
environment: |
|
||||||
- FLASK_SERVER_PORT=9091 |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
depends_on: |
|
||||||
- mongo |
|
||||||
|
|
||||||
mongo: |
|
||||||
image: mongo |
|
@ -1,61 +0,0 @@ |
|||||||
services: |
|
||||||
db: |
|
||||||
image: mariadb:10-focal |
|
||||||
command: '--default-authentication-plugin=mysql_native_password' |
|
||||||
restart: always |
|
||||||
healthcheck: |
|
||||||
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"] |
|
||||||
interval: 3s |
|
||||||
retries: 5 |
|
||||||
start_period: 30s |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- db-data:/var/lib/mysql |
|
||||||
networks: |
|
||||||
- backnet |
|
||||||
environment: |
|
||||||
- MYSQL_DATABASE=example |
|
||||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password |
|
||||||
expose: |
|
||||||
- 3306 |
|
||||||
- 33060 |
|
||||||
|
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
restart: always |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
ports: |
|
||||||
- 8000:8000 |
|
||||||
networks: |
|
||||||
- backnet |
|
||||||
- frontnet |
|
||||||
depends_on: |
|
||||||
db: |
|
||||||
condition: service_healthy |
|
||||||
|
|
||||||
proxy: |
|
||||||
build: proxy |
|
||||||
restart: always |
|
||||||
ports: |
|
||||||
- 80:80 |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
networks: |
|
||||||
- frontnet |
|
||||||
|
|
||||||
volumes: |
|
||||||
db-data: |
|
||||||
|
|
||||||
secrets: |
|
||||||
db-password: |
|
||||||
file: db/password.txt |
|
||||||
|
|
||||||
networks: |
|
||||||
backnet: |
|
||||||
frontnet: |
|
@ -1,50 +0,0 @@ |
|||||||
services: |
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
depends_on: |
|
||||||
db: |
|
||||||
condition: service_healthy |
|
||||||
|
|
||||||
db: |
|
||||||
image: mariadb:10-focal |
|
||||||
command: '--default-authentication-plugin=mysql_native_password' |
|
||||||
restart: always |
|
||||||
healthcheck: |
|
||||||
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"] |
|
||||||
interval: 3s |
|
||||||
retries: 5 |
|
||||||
start_period: 30s |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- db-data:/var/lib/mysql |
|
||||||
environment: |
|
||||||
- MYSQL_DATABASE=example |
|
||||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password |
|
||||||
expose: |
|
||||||
- 3306 |
|
||||||
|
|
||||||
proxy: |
|
||||||
image: nginx |
|
||||||
volumes: |
|
||||||
- type: bind |
|
||||||
source: ./proxy/nginx.conf |
|
||||||
target: /etc/nginx/conf.d/default.conf |
|
||||||
read_only: true |
|
||||||
ports: |
|
||||||
- 80:80 |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
|
|
||||||
volumes: |
|
||||||
db-data: |
|
||||||
|
|
||||||
secrets: |
|
||||||
db-password: |
|
||||||
file: db/password.txt |
|
@ -1,50 +0,0 @@ |
|||||||
services: |
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
depends_on: |
|
||||||
db: |
|
||||||
condition: service_healthy |
|
||||||
|
|
||||||
db: |
|
||||||
image: postgres |
|
||||||
restart: always |
|
||||||
user: postgres |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- db-data:/var/lib/postgresql/data |
|
||||||
environment: |
|
||||||
- POSTGRES_DB=example |
|
||||||
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password |
|
||||||
expose: |
|
||||||
- 5432 |
|
||||||
healthcheck: |
|
||||||
test: [ "CMD", "pg_isready" ] |
|
||||||
interval: 10s |
|
||||||
timeout: 5s |
|
||||||
retries: 5 |
|
||||||
|
|
||||||
proxy: |
|
||||||
image: nginx |
|
||||||
volumes: |
|
||||||
- type: bind |
|
||||||
source: ./proxy/nginx.conf |
|
||||||
target: /etc/nginx/conf.d/default.conf |
|
||||||
read_only: true |
|
||||||
ports: |
|
||||||
- 80:80 |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
|
|
||||||
volumes: |
|
||||||
db-data: |
|
||||||
|
|
||||||
secrets: |
|
||||||
db-password: |
|
||||||
file: db/password.txt |
|
@ -1,19 +0,0 @@ |
|||||||
services: |
|
||||||
proxy: |
|
||||||
image: nginx |
|
||||||
volumes: |
|
||||||
- type: bind |
|
||||||
source: ./proxy/nginx.conf |
|
||||||
target: /etc/nginx/conf.d/default.conf |
|
||||||
read_only: true |
|
||||||
ports: |
|
||||||
- 80:80 |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
|
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
@ -1,42 +0,0 @@ |
|||||||
services: |
|
||||||
frontend: |
|
||||||
build: |
|
||||||
context: frontend |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- 3000:3000 |
|
||||||
stdin_open: true |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
restart: always |
|
||||||
networks: |
|
||||||
- react-express |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
|
|
||||||
backend: |
|
||||||
restart: always |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
depends_on: |
|
||||||
- mongo |
|
||||||
networks: |
|
||||||
- express-mongo |
|
||||||
- react-express |
|
||||||
expose: |
|
||||||
- 3000 |
|
||||||
mongo: |
|
||||||
restart: always |
|
||||||
image: mongo:4.2.0 |
|
||||||
volumes: |
|
||||||
- ./data:/data/db |
|
||||||
networks: |
|
||||||
- express-mongo |
|
||||||
expose: |
|
||||||
- 27017 |
|
||||||
networks: |
|
||||||
react-express: |
|
||||||
express-mongo: |
|
@ -1,64 +0,0 @@ |
|||||||
services: |
|
||||||
backend: |
|
||||||
build: |
|
||||||
args: |
|
||||||
- NODE_ENV=development |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
command: npm run start-watch |
|
||||||
environment: |
|
||||||
- DATABASE_DB=example |
|
||||||
- DATABASE_USER=root |
|
||||||
- DATABASE_PASSWORD=/run/secrets/db-password |
|
||||||
- DATABASE_HOST=db |
|
||||||
- NODE_ENV=development |
|
||||||
ports: |
|
||||||
- 80:80 |
|
||||||
- 9229:9229 |
|
||||||
- 9230:9230 |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
networks: |
|
||||||
- public |
|
||||||
- private |
|
||||||
depends_on: |
|
||||||
- db |
|
||||||
db: |
|
||||||
# We use a mariadb image which supports both amd64 & arm64 architecture |
|
||||||
image: mariadb:10.6.4-focal |
|
||||||
# If you really want to use MySQL, uncomment the following line |
|
||||||
#image: mysql:8.0.27 |
|
||||||
command: '--default-authentication-plugin=mysql_native_password' |
|
||||||
restart: always |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- db-data:/var/lib/mysql |
|
||||||
networks: |
|
||||||
- private |
|
||||||
environment: |
|
||||||
- MYSQL_DATABASE=example |
|
||||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password |
|
||||||
frontend: |
|
||||||
build: |
|
||||||
context: frontend |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- 3000:3000 |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
networks: |
|
||||||
- public |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
networks: |
|
||||||
public: |
|
||||||
private: |
|
||||||
volumes: |
|
||||||
back-notused: |
|
||||||
db-data: |
|
||||||
secrets: |
|
||||||
db-password: |
|
||||||
file: db/password.txt |
|
@ -1,61 +0,0 @@ |
|||||||
services: |
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
restart: always |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
environment: |
|
||||||
MYSQL_HOST: db |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
networks: |
|
||||||
- react-spring |
|
||||||
- spring-mysql |
|
||||||
depends_on: |
|
||||||
db: |
|
||||||
condition: service_healthy |
|
||||||
db: |
|
||||||
# We use a mariadb image which supports both amd64 & arm64 architecture |
|
||||||
image: mariadb:10.6.4-focal |
|
||||||
# If you really want to use MySQL, uncomment the following line |
|
||||||
#image: mysql:8.0.19 |
|
||||||
environment: |
|
||||||
- MYSQL_DATABASE=example |
|
||||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password |
|
||||||
restart: always |
|
||||||
healthcheck: |
|
||||||
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"] |
|
||||||
interval: 3s |
|
||||||
retries: 5 |
|
||||||
start_period: 30s |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- db-data:/var/lib/mysql |
|
||||||
networks: |
|
||||||
- spring-mysql |
|
||||||
frontend: |
|
||||||
build: |
|
||||||
context: frontend |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- 3000:3000 |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
networks: |
|
||||||
- react-spring |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
expose: |
|
||||||
- 3306 |
|
||||||
- 33060 |
|
||||||
volumes: |
|
||||||
db-data: {} |
|
||||||
secrets: |
|
||||||
db-password: |
|
||||||
file: db/password.txt |
|
||||||
networks: |
|
||||||
react-spring: {} |
|
||||||
spring-mysql: {} |
|
@ -1,11 +0,0 @@ |
|||||||
services: |
|
||||||
frontend: |
|
||||||
build: |
|
||||||
context: . |
|
||||||
target: dev-envs |
|
||||||
container_name: frontend |
|
||||||
ports: |
|
||||||
- "80:3000" |
|
||||||
- "3000:3000" |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
@ -1,51 +0,0 @@ |
|||||||
name: react-rust-postgres |
|
||||||
services: |
|
||||||
frontend: |
|
||||||
build: |
|
||||||
context: ../frontend |
|
||||||
target: dev-envs |
|
||||||
networks: |
|
||||||
- client-side |
|
||||||
ports: |
|
||||||
- 3000:3000 |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
|
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: ../backend |
|
||||||
target: dev-envs |
|
||||||
environment: |
|
||||||
- RUST_LOG=debug |
|
||||||
- PG_DBNAME=postgres |
|
||||||
- PG_HOST=db |
|
||||||
- PG_USER=postgres |
|
||||||
- PG_PASSWORD=mysecretpassword |
|
||||||
- ADDRESS=0.0.0.0:8000 |
|
||||||
networks: |
|
||||||
- client-side |
|
||||||
- server-side |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
depends_on: |
|
||||||
- db |
|
||||||
|
|
||||||
db: |
|
||||||
image: postgres:12-alpine |
|
||||||
restart: always |
|
||||||
environment: |
|
||||||
- POSTGRES_PASSWORD=mysecretpassword |
|
||||||
networks: |
|
||||||
- server-side |
|
||||||
ports: |
|
||||||
- 5432:5432 |
|
||||||
volumes: |
|
||||||
- db-data:/var/lib/postgresql/data |
|
||||||
|
|
||||||
networks: |
|
||||||
client-side: {} |
|
||||||
server-side: {} |
|
||||||
|
|
||||||
volumes: |
|
||||||
backend-cache: {} |
|
||||||
db-data: {} |
|
@ -1,32 +0,0 @@ |
|||||||
services: |
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- 8080:8080 |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
db: |
|
||||||
# We use a mariadb image which supports both amd64 & arm64 architecture |
|
||||||
image: mariadb:10.6.4-focal |
|
||||||
# If you really want to use MySQL, uncomment the following line |
|
||||||
#image: mysql:8.0.27 |
|
||||||
restart: always |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- db-data:/var/lib/mysql |
|
||||||
environment: |
|
||||||
- MYSQL_DATABASE=example |
|
||||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password |
|
||||||
expose: |
|
||||||
- 3306 |
|
||||||
- 33060 |
|
||||||
volumes: |
|
||||||
db-data: |
|
||||||
secrets: |
|
||||||
db-password: |
|
||||||
file: db/password.txt |
|
@ -1,9 +0,0 @@ |
|||||||
services: |
|
||||||
sparkjava: |
|
||||||
build: |
|
||||||
context: sparkjava |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- 8080:8080 |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
@ -1,34 +0,0 @@ |
|||||||
services: |
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- 8080:8080 |
|
||||||
environment: |
|
||||||
- POSTGRES_DB=example |
|
||||||
networks: |
|
||||||
- spring-postgres |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
db: |
|
||||||
image: postgres |
|
||||||
restart: always |
|
||||||
secrets: |
|
||||||
- db-password |
|
||||||
volumes: |
|
||||||
- db-data:/var/lib/postgresql/data |
|
||||||
networks: |
|
||||||
- spring-postgres |
|
||||||
environment: |
|
||||||
- POSTGRES_DB=example |
|
||||||
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password |
|
||||||
expose: |
|
||||||
- 5432 |
|
||||||
volumes: |
|
||||||
db-data: |
|
||||||
secrets: |
|
||||||
db-password: |
|
||||||
file: db/password.txt |
|
||||||
networks: |
|
||||||
spring-postgres: |
|
@ -1,22 +0,0 @@ |
|||||||
services: |
|
||||||
frontend: |
|
||||||
image: traefik:2.6 |
|
||||||
command: --providers.docker --entrypoints.web.address=:80 --providers.docker.exposedbydefault=false |
|
||||||
ports: |
|
||||||
# The HTTP port |
|
||||||
- "80:80" |
|
||||||
volumes: |
|
||||||
# So that Traefik can listen to the Docker events |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
depends_on: |
|
||||||
- backend |
|
||||||
backend: |
|
||||||
build: |
|
||||||
context: backend |
|
||||||
target: dev-envs |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
||||||
labels: |
|
||||||
- "traefik.enable=true" |
|
||||||
- "traefik.http.routers.go.rule=Path(`/`)" |
|
||||||
- "traefik.http.services.go.loadbalancer.server.port=80" |
|
@ -1,9 +0,0 @@ |
|||||||
services: |
|
||||||
web: |
|
||||||
build: |
|
||||||
context: vuejs |
|
||||||
target: dev-envs |
|
||||||
ports: |
|
||||||
- 8080:8080 |
|
||||||
volumes: |
|
||||||
- /var/run/docker.sock:/var/run/docker.sock |
|
@ -1,36 +0,0 @@ |
|||||||
services: |
|
||||||
redpanda: |
|
||||||
image: docker.redpanda.com/vectorized/redpanda:v22.2.2 |
|
||||||
command: |
|
||||||
- redpanda start |
|
||||||
- --smp 1 |
|
||||||
- --overprovisioned |
|
||||||
- --node-id 0 |
|
||||||
- --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 |
|
||||||
- --advertise-kafka-addr PLAINTEXT://redpanda:29092,OUTSIDE://redpanda:9092 |
|
||||||
- --pandaproxy-addr 0.0.0.0:8082 |
|
||||||
- --advertise-pandaproxy-addr localhost:8082 |
|
||||||
ports: |
|
||||||
- 8081:8081 |
|
||||||
- 8082:8082 |
|
||||||
- 9092:9092 |
|
||||||
- 9644:9644 |
|
||||||
- 29092:29092 |
|
||||||
volumes: |
|
||||||
- ./kafka:/app |
|
||||||
etl: |
|
||||||
image: etl-kafka |
|
||||||
platform: wasi/wasm |
|
||||||
build: |
|
||||||
context: etl |
|
||||||
environment: |
|
||||||
DATABASE_URL: mysql://root:whalehello@db:3306/mysql |
|
||||||
KAFKA_URL: kafka://redpanda:9092/order |
|
||||||
RUST_BACKTRACE: full |
|
||||||
RUST_LOG: info |
|
||||||
restart: unless-stopped |
|
||||||
runtime: io.containerd.wasmedge.v1 |
|
||||||
db: |
|
||||||
image: mariadb:10.9 |
|
||||||
environment: |
|
||||||
MYSQL_ROOT_PASSWORD: whalehello |
|
@ -1,25 +0,0 @@ |
|||||||
services: |
|
||||||
frontend: |
|
||||||
image: nginx:alpine |
|
||||||
ports: |
|
||||||
- 8090:80 |
|
||||||
volumes: |
|
||||||
- ./frontend:/usr/share/nginx/html |
|
||||||
|
|
||||||
backend: |
|
||||||
image: demo-microservice |
|
||||||
platform: wasi/wasm |
|
||||||
build: |
|
||||||
context: backend/ |
|
||||||
ports: |
|
||||||
- 8080:8080 |
|
||||||
environment: |
|
||||||
DATABASE_URL: mysql://root:whalehello@db:3306/mysql |
|
||||||
RUST_BACKTRACE: full |
|
||||||
restart: unless-stopped |
|
||||||
runtime: io.containerd.wasmedge.v1 |
|
||||||
|
|
||||||
db: |
|
||||||
image: mariadb:10.9 |
|
||||||
environment: |
|
||||||
MYSQL_ROOT_PASSWORD: whalehello |
|
Loading…
Reference in new issue