forked from rija/docker-nginx-fpm-caches-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (46 loc) · 974 Bytes
/
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
48
version: '2'
services:
webapp:
env_file: website/.env
restart: 'unless-stopped'
cap_add:
- NET_ADMIN
networks:
- wp_net
image: ${REGISTRY_URL}/${IMAGE_NAME}:${VERSION}
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- /tmp:/root/sql
ports:
- 443:443
- 80:80
depends_on:
- db
environment:
SERVER_NAME:
ADMIN_EMAIL:
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
DB_HOSTNAME: dbs
DB_USER: ${WP_DB_USER}
DB_PASSWORD: ${WP_DB_PASSWORD}
DB_DATABASE: ${WP_DB_NAME}
links:
- db:dbs
db:
env_file: website/.env
restart: 'unless-stopped'
networks:
- wp_net
image: mariadb:10.2
volumes:
- mariadb_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_USER: ${WP_DB_USER}
MYSQL_PASSWORD: ${WP_DB_PASSWORD}
MYSQL_DATABASE: ${WP_DB_NAME}
networks:
wp_net:
driver: bridge
volumes:
mariadb_data: