mirror of
https://github.com/bitnami/containers.git
synced 2026-03-19 15:57:46 +08:00
adds compose spec for developing with mariadb backend
This commit is contained in:
19
bitnami/express/docker-compose-mariadb.yml
Normal file
19
bitnami/express/docker-compose-mariadb.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
image: bitnami/mariadb:latest
|
||||
environment:
|
||||
- MARIADB_DATABASE=my_app_development
|
||||
|
||||
myapp:
|
||||
tty: true # Enables debugging capabilities when attached to this container.
|
||||
image: bitnami/express:latest
|
||||
environment:
|
||||
- DATABASE_URL=mysql://root@mariadb/my_app_development
|
||||
depends_on:
|
||||
- mariadb
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- .:/app
|
||||
Reference in New Issue
Block a user