Skip to content

Commit

Permalink
chore: update all in one
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Jul 28, 2024
1 parent 15d4a2a commit 5ed25fa
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 85 deletions.
107 changes: 53 additions & 54 deletions deploy/docker-compose/all_in_one/mysql/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
version: '3'
version: "3"

volumes:
mysql:
redis:
fms:


networks:
simple-admin:
driver: bridge
Expand All @@ -17,10 +16,10 @@ services:
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
ports:
- '3306:3306'
- "3306:3306"
environment:
MYSQL_DATABASE: 'simple_admin'
MYSQL_ROOT_PASSWORD: 'simple-admin.'
MYSQL_DATABASE: "simple_admin"
MYSQL_ROOT_PASSWORD: "simple-admin."
volumes:
- mysql:/var/lib/mysql
networks:
Expand All @@ -30,18 +29,18 @@ services:
deploy:
resources:
limits:
cpus: '0.5'
cpus: "0.5"
memory: 1000M
reservations:
cpus: '0.05'
cpus: "0.05"
memory: 200M

redis:
image: redis:7.2-alpine
container_name: redis
restart: always
ports:
- '6379:6379'
- "6379:6379"
volumes:
- redis:/data
networks:
Expand All @@ -51,23 +50,23 @@ services:
deploy:
resources:
limits:
cpus: '0.5'
cpus: "0.5"
memory: 500M
reservations:
cpus: '0.05'
cpus: "0.05"
memory: 200M

core-rpc:
image: ryanpower/core-rpc-docker:v1.5.0
image: ryanpower/core-rpc-docker:v1.5.2
container_name: core-rpc
restart: always
ports:
- '9101:9101'
- "9101:9101"
environment:
DATABASE_TYPE: 'mysql'
DATABASE_USERNAME: 'root'
DATABASE_PASSWORD: 'simple-admin.'
DATABASE_HOST: 'mysql-server'
DATABASE_TYPE: "mysql"
DATABASE_USERNAME: "root"
DATABASE_PASSWORD: "simple-admin."
DATABASE_HOST: "mysql-server"
DATABASE_PORT: 3306
networks:
simple-admin:
Expand All @@ -76,23 +75,23 @@ services:
deploy:
resources:
limits:
cpus: '0.5'
cpus: "0.5"
memory: 500M
reservations:
cpus: '0.05'
cpus: "0.05"
memory: 200M

job-rpc:
image: ryanpower/job-rpc-docker:v1.5.0
image: ryanpower/job-rpc-docker:v1.5.2
container_name: job-rpc
restart: always
ports:
- '9105:9105'
- "9105:9105"
environment:
DATABASE_TYPE: 'mysql'
DATABASE_USERNAME: 'root'
DATABASE_PASSWORD: 'simple-admin.'
DATABASE_HOST: 'mysql-server'
DATABASE_TYPE: "mysql"
DATABASE_USERNAME: "root"
DATABASE_PASSWORD: "simple-admin."
DATABASE_HOST: "mysql-server"
DATABASE_PORT: 3306
networks:
simple-admin:
Expand All @@ -101,74 +100,74 @@ services:
deploy:
resources:
limits:
cpus: '0.5'
cpus: "0.5"
memory: 500M
reservations:
cpus: '0.05'
cpus: "0.05"
memory: 200M

core-api:
image: ryanpower/core-api-docker:v1.5.0
image: ryanpower/core-api-docker:v1.5.2
container_name: core-api
restart: always
environment:
# I18N_DIR: '/app/etc/'
DATABASE_TYPE: 'mysql'
DATABASE_HOST: 'mysql-server'
DATABASE_USERNAME: 'root'
DATABASE_PASSWORD: 'simple-admin.'
DATABASE_TYPE: "mysql"
DATABASE_HOST: "mysql-server"
DATABASE_USERNAME: "root"
DATABASE_PASSWORD: "simple-admin."
DATABASE_PORT: 3306
# AUTH_SECRET: 'jS6VKDtsJf3z1n2VKDtsJf3z1n2'
ports:
- '9100:9100'
- "9100:9100"
networks:
simple-admin:
aliases:
- core-api
deploy:
resources:
limits:
cpus: '0.5'
cpus: "0.5"
memory: 500M
reservations:
cpus: '0.05'
cpus: "0.05"
memory: 200M

backend-ui:
image: ryanpower/backend-ui-docker:v1.5.0
image: ryanpower/backend-ui-docker:v1.5.2
container_name: backend-ui
restart: always
ports:
- '80:80'
- "80:80"
networks:
simple-admin:
aliases:
- backend-ui
deploy:
resources:
limits:
cpus: '0.5'
cpus: "0.5"
memory: 500M
reservations:
cpus: '0.05'
cpus: "0.05"
memory: 200M

fms-api:
image: ryanpower/fms-api-docker:v1.5.0
image: ryanpower/fms-api-docker:v1.5.2
container_name: fms-api
restart: always
# environment:
# SERVER_URL: 'http://localhost:81'
# AUTH_SECRET: 'jS6VKDtsJf3z1n2VKDtsJf3z1n2'
environment:
DATABASE_TYPE: 'mysql'
DATABASE_USERNAME: 'root'
DATABASE_PASSWORD: 'simple-admin.'
DATABASE_HOST: 'mysql-server'
DATABASE_TYPE: "mysql"
DATABASE_USERNAME: "root"
DATABASE_PASSWORD: "simple-admin."
DATABASE_HOST: "mysql-server"
DATABASE_PORT: 3306
ports:
- '9102:9102'
- '81:80'
- "9102:9102"
- "81:80"
volumes:
- fms:/home/data
networks:
Expand All @@ -178,21 +177,21 @@ services:
deploy:
resources:
limits:
cpus: '0.5'
cpus: "0.5"
memory: 500M
reservations:
cpus: '0.05'
cpus: "0.05"
memory: 200M

mcms-rpc:
image: ryanpower/mcms-rpc-docker:v1.5.0
image: ryanpower/mcms-rpc-docker:v1.5.2
container_name: mcms-rpc
restart: always
environment:
DATABASE_TYPE: 'mysql'
DATABASE_USERNAME: 'root'
DATABASE_PASSWORD: 'simple-admin.'
DATABASE_HOST: 'mysql-server'
DATABASE_TYPE: "mysql"
DATABASE_USERNAME: "root"
DATABASE_PASSWORD: "simple-admin."
DATABASE_HOST: "mysql-server"
DATABASE_PORT: 3306
# EMAIL_ADDR: [email protected]
# ports:
Expand All @@ -204,8 +203,8 @@ services:
deploy:
resources:
limits:
cpus: '0.5'
cpus: "0.5"
memory: 500M
reservations:
cpus: '0.05'
cpus: "0.05"
memory: 200M
Loading

0 comments on commit 5ed25fa

Please sign in to comment.