1
0
mirror of https://github.com/trambarhq/relaks-wordpress-example.git synced 2025-09-03 05:02:34 +02:00

Added configuration for accessing remote instance of WordPress (issue #23).

This commit is contained in:
Chung Leong
2019-01-27 20:56:53 +01:00
parent d362ddef49
commit 09186c2341
14 changed files with 111 additions and 14 deletions

39
docker-compose-remote.yml Normal file
View File

@@ -0,0 +1,39 @@
version: "2"
services:
node:
image: node:8
volumes:
- .:/opt/example
- web_cache:/var/cache/nginx
networks:
network:
ipv4_address: 172.130.0.4
environment:
WORDPRESS_HOST: https://realworldtech.com
NGINX_HOST: http://nginx
NGINX_CACHE: /var/cache/nginx/data
command: [ node, /opt/example/server/index.js ]
restart: always
nginx:
depends_on:
- node
image: nginx:latest
volumes:
- ./server/nginx-ext:/etc/nginx/conf.d
- web_cache:/var/cache/nginx
networks:
network:
ipv4_address: 172.130.0.5
ports:
- 8000:80
restart: always
volumes:
db_data:
web_cache:
networks:
network:
driver: bridge
ipam:
config:
- subnet: 172.130.0.0/16
gateway: 172.130.0.1