Skip to content

Commit

Permalink
mysql sed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars-Erik Roald committed Jul 14, 2024
1 parent 4d72ecf commit 4795c8d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ services:
build:
context: .
dockerfile: Dockerfile
command: /bin/sh -c "sed -i 's/localhost:15432/postgres/g' /workspace/.env && sleep infinity"
command: /bin/sh -c "sed -i 's/localhost:15432/postgres/g' /workspace/.env && sed -i 's/mysql on localhost:13306/mysql/g' /workspace/.env && sleep infinity"
volumes:
- ..:/workspace:cached
- try-node-node_modules:/workspace/node_modules
depends_on:
- postgres
- mysql
postgres:
image: postgres
environment:
Expand All @@ -17,5 +18,15 @@ services:
ports:
- 15432:5432

mysql:
image: mysql:8.0.31
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_DATABASE=test
- MYSQL_USER=test
- MYSQL_PASSWORD=test
ports:
- 13306:3306

volumes:
try-node-node_modules:

0 comments on commit 4795c8d

Please sign in to comment.