-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 985 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 985 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
39
40
41
version: '3'
services:
nginx:
build: .
image: ghcr.io/servercontainers/nginx
restart: always
environment:
NGINX_CONFIG_phpmyadmin: server {server_name localhost; proxy_ssl_verify off; location / {return 301 https://localhost/phpmyadmin/;} location /phpmyadmin {proxy_pass https://phpmyadmin/phpmyadmin;}}
HTACCESS_ACCOUNT_bob: pa55word
ports:
- 80:80
- 443:443
networks:
- web-test
phpmyadmin:
image: ghcr.io/servercontainers/phpmyadmin
restart: always
environment:
PHPMYADMIN_MYSQL_HOST: mysql
PHPMYADMIN_RELATIVE_URL_ROOT: /phpmyadmin
networks:
- web-test
mysql:
image: ghcr.io/servercontainers/mysql
restart: always
environment:
ADMIN_USER: admin
ADMIN_PASSWORD: password
BACKUP_ENABLED: enable
DB_NAME: exampledb
DB_USER: exampleuser
DB_PASSWORD: examplepassword
networks:
- web-test
networks:
web-test:
driver: bridge