Skip to content

Commit 4a076e6

Browse files
committed
fix workflow with -d on compose and postgres config
1 parent 9a26d1c commit 4a076e6

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.devcontainer/docker-compose.postgres.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,15 @@ services:
2828
- hashtopolis_dev
2929
hashtopolis-db-dev:
3030
container_name: hashtopolis-db-dev
31-
image: mysql:8.0
31+
image: postgres:13
3232
restart: always
33-
ports:
34-
- "3306:3306"
3533
volumes:
36-
- hashtopolis-db-dev:/var/lib/mysql
34+
- db:/var/lib/postgresql/data
3735
environment:
38-
MYSQL_ROOT_PASSWORD: hashtopolis
39-
MYSQL_DATABASE: hashtopolis
40-
MYSQL_USER: hashtopolis
41-
MYSQL_PASSWORD: hashtopolis
42-
networks:
43-
- hashtopolis_dev
36+
POSTGRES_DB: hashtopolis
37+
POSTGRES_USER: hashtopolis
38+
POSTGRES_PASSWORD: hashtopolis
39+
4440
volumes:
4541
hashtopolis-db-dev:
4642
hashtopolis-server-dev:

.github/actions/start-hashtopolis/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runs:
1212
steps:
1313
- name: Start application containers
1414
working-directory: .devcontainer
15-
run: docker compose -f docker-compose.${{ inputs.db_system }}.yml up
15+
run: docker compose -f docker-compose.${{ inputs.db_system }}.yml up -d
1616
shell: bash
1717
- name: Install composer dependencies packages
1818
run: docker exec hashtopolis-server-dev composer install --working-dir=/var/www/html/

0 commit comments

Comments
 (0)