-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (33 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (33 loc) · 878 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
32
33
34
35
36
37
38
version: 3.7
services:
devops-api:
image: localhost/jrosental/devops-test
container_name: devops-api
restart: always
ports:
- "8080:8080"
networks:
- some-network
environment:
- DBUSER=devops
- DBPASS=test
- DBHOST=192.168.1.146:3306
depends_on:
- devops-db
devops-db:
image: docker.io/library/mariadb:latest
container_name: mariadb
restart: always
ports:
- "3306:3306"
networks:
- some-network
volumes:
- ./database-scripts:/docker-entrypoint-initdb.d:Z
environment:
- MARIADB_ROOT_PASSWORD=1234
- MARIADB_DATABASE=users
- MARIADB_USER=devops
- MARIADB_PASSWORD=test
networks:
some-network: {}