-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.17 KB
/
docker-compose.yml
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
47
version: '3'
services:
wordpress:
container_name: JSARC
depends_on:
- database
build:
context: .
dockerfile: Dockerfile
environment:
WORDPRESS_DB_HOST: database:3306
WORDPRESS_DB_PASSWORD: jsarc #for demo purposes only otherwise this is called from an environment file
WORDPRESS_DB_USER: jsarc
WORDPRESS_DB_NAME: jsarc
WORDPRESS_DEBUG: 0
SITE_URL: 'http://localhost:8081'
SITE_TITLE: JSaRC
ADMIN_USER: test
ADMIN_EMAIL: test@example.com
ADMIN_PASSWORD: test1234
DEV_DEPLOYMENT: 'yes'
ports:
- 8081:8081
volumes:
- ./website-content/themes/jsarc:/var/www/jsarc
networks:
- app-network
database:
image: mariadb:10.6
container_name: JSARC-DB
environment:
MYSQL_ROOT_PASSWORD: demopassword #for demo purposes only otherwise this is called from an environment file
MYSQL_DATABASE: jsarc
MYSQL_USER: jsarc
MYSQL_PASSWORD: jsarc
ports:
- "3406:3306"
volumes:
- mysql:/var/lib/mysql
- ./tmp:/docker-entrypoint-initdb.d
networks:
- app-network
volumes:
mysql:
networks:
app-network:
driver: bridge