-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoauth-docker-compose.yml
More file actions
46 lines (43 loc) · 1.28 KB
/
noauth-docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.28 KB
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
39
40
41
42
43
44
45
46
version: "3.9"
services:
reacthookspring-db:
image: mariadb:latest
restart: on-failure
environment:
MYSQL_DATABASE: 'reacthookspring'
# So you don't have to use root, but you can if you like
MYSQL_USER: 'reacthookspring'
# You can use whatever password you like
MYSQL_PASSWORD: 'reacthookspring'
# Password for root access
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
ports:
# <Port exposed> : < MySQL Port running inside container>
- '3306:3306'
healthcheck:
test: ["CMD", "mysql" ,"-h", "localhost", "-P", "3306", "-u", "root", "-e", "select 1", "reacthookspring"]
interval: 5s
timeout: 60s
retries: 30
volumes:
- reacthookspringv2-db-data:/var/lib/mysql
networks: # Networks to join (Services on the same network can communicate with each other using their name)
- backend
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- reacthookspring-pgadmin:/var/lib/pgadmin
ports:
- "5050:80"
networks:
- backend
networks:
backend:
volumes:
reacthookspring-db:
reacthookspring-pgadmin: