🤖 TEST: Replicate Activated
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
version: "2.1"
|
||||
version: "3"
|
||||
networks:
|
||||
backend:
|
||||
external: true
|
||||
frontend:
|
||||
external: true
|
||||
volumes:
|
||||
asset-data: null
|
||||
|
||||
services:
|
||||
phoenix-frontend:
|
||||
container_name: phoenix-frontend
|
||||
restart: always
|
||||
image: "yurimatoslima/phoenix-frontend:alpha"
|
||||
volumes:
|
||||
@@ -19,6 +23,7 @@ services:
|
||||
depends_on:
|
||||
- phoenix-backend
|
||||
phoenix-backend:
|
||||
container_name: phoenix-backend
|
||||
restart: always
|
||||
image: "yurimatoslima/phoenix-backend:alpha"
|
||||
env_file: .env
|
||||
@@ -51,15 +56,18 @@ services:
|
||||
- "3000:3000"
|
||||
- "3400:3400"
|
||||
- "9615:9615"
|
||||
- "587:587" # Email Port
|
||||
volumes:
|
||||
- "asset-data:/usr/src/app/packages/dev-server/assets"
|
||||
- "/opt/containers/phx/server_custom:/usr/src/app/packages/dev-server/custom"
|
||||
networks:
|
||||
- backend
|
||||
# deploy:
|
||||
# replicas: 2
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 2
|
||||
update_config:
|
||||
order: start-first # It means that the service will be updated one at a time
|
||||
phoenix-backend-worker:
|
||||
container_name: phoenix-backend-worker
|
||||
restart: always
|
||||
image: "yurimatoslima/phoenix-backend:alpha"
|
||||
env_file: .env
|
||||
@@ -76,5 +84,3 @@ services:
|
||||
- "/opt/containers/phx/server_custom:/usr/src/app/packages/dev-server/custom"
|
||||
networks:
|
||||
- backend
|
||||
volumes:
|
||||
asset-data: null
|
||||
|
||||
Reference in New Issue
Block a user