-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 699 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (30 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# docker-compose for local development only
services:
mysql:
image: mysql:8.2-oracle
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
networks:
- backend
# uncomment ports if you wish to expose to another app
# ports:
# - 3306:3306
environment:
MYSQL_ROOT_PASSWORD: developmentPass
MYSQL_DATABASE: app
myservice:
image: myservice:latest
restart: always
networks:
- backend
depends_on:
- mysql
build:
context: .
ports:
- 5000:5000
environment:
CONNECTION_STRING: mysql://root:developmentPass@mysql:3306/app
networks:
backend: