Created
January 30, 2023 07:55
-
-
Save domzgarcia/f0503fc05b4a208ae8db904d7e27581d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.2" | |
services: | |
omis: | |
build: | |
context: ./docker-config-app | |
labels: | |
maintainer: "boomer" | |
args: | |
APP_IP: ${APP_IP} | |
APP_ALIAS: ${APP_ALIAS} | |
image: image:latest | |
environment: | |
- NODE_ENV=development | |
container_name: app-client-${APP_IP} | |
volumes: | |
# host:container | |
- ${LOCAL_PATH}:/var/www/app-client | |
networks: | |
default: | |
ipv4_address: ${APP_IP} | |
tty: true | |
stdin_open: true | |
extra_hosts: | |
- "test.local:${APP_IP}" | |
depends_on: | |
- mongodb | |
mongodb: | |
image: 'mongo:4.2' | |
build: | |
context: ./docker-config-mongo-4.2 | |
labels: | |
maintainer: "boomer" | |
container_name: app-db-${DB_IP} | |
networks: | |
default: | |
ipv4_address: ${DB_IP} | |
tty: true | |
stdin_open: true | |
volumes: | |
mongodb_data: | |
driver: local | |
networks: | |
default: | |
external: | |
name: ${EXTERNAL_NETWORK} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment