Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- db:
- image: mysql:5.7
- volumes:
- - "./.data/db:/var/lib/mysql"
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: wordpress
- MYSQL_DATABASE: wordpress
- MYSQL_USER: wordpress
- MYSQL_PASSWORD: wordpress
- wordpress:
- depends_on:
- - db
- image: wordpress:latest
- links:
- - db
- ports:
- - "8000:80"
- restart: always
- environment:
- WORDPRESS_DB_HOST: db:3306
- WORDPRESS_DB_PASSWORD: wordpress
- 18947bb36eb9 nocwp_default bridge local
- [
- {
- "Name": "nocwp_default",
- "Id": "18947bb36eb9754e708b685899c2ec9f37d3b84fd8db699c4dbd17a310a6fddf",
- "Scope": "local",
- "Driver": "bridge",
- "EnableIPv6": false,
- "IPAM": {
- "Driver": "default",
- "Options": null,
- "Config": [
- {
- "Subnet": "172.18.0.0/16",
- "Gateway": "172.18.0.1/16"
- }
- ]
- },
- "Internal": false,
- "Containers": {
- "1cf669bf4026965d1458453fb443fa7ec7d41e802363a1723242c28bdc1e0f32": {
- "Name": "nocwp_wordpress_1",
- "EndpointID": "2bccacb34567e0c2a9f120372894f3643cdb4deb2a39781066a02ad29c1f0ac8",
- "MacAddress": "02:42:ac:12:00:03",
- "IPv4Address": "172.18.0.3/16",
- "IPv6Address": ""
- },
- "5ec53dfc8b34a20325b6fcc44af7393d194a560a7ba28e7484bba7286e82ba37": {
- "Name": "nocwp_db_1",
- "EndpointID": "b21ebfa4bb5be7e6b3e7a9e3f3d33bc074d7024506cbd52c6b1f01ccf3e48e75",
- "MacAddress": "02:42:ac:12:00:02",
- "IPv4Address": "172.18.0.2/16",
- "IPv6Address": ""
- }
- },
- "Options": {},
- "Labels": {}
- }
- ]
- fastcgi_pass http://172.18.0.3:8000
- fastcgi_pass http://172.18.0.3:80
- fastcgi_pass http://172.31.41.223:8000 (this is my internal IP address in AWS)
- telnet 172.18.0.3 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement