reprogl
/
docker-compose.yml
39 строк · 953.0 Байт
1services:
2gopher:
3build:
4context: .
5dockerfile: "docker/app/Dockerfile"
6platform: linux/amd64
7container_name: "gopher"
8volumes:
9- ./:/var/www/app
10ports:
11- "8044:8080"
12extra_hosts:
13- "database.lan:${DATABASE_IP}"
14- "zendblog.xelbot.com:${APPLICATION_IP}"
15networks:
16- blognet
17
18varnish:
19image: varnish:7.2-alpine
20platform: linux/amd64
21container_name: "reprogl_varnish"
22environment:
23BAN_TOKEN: ${BAN_TOKEN}
24volumes:
25- ./docker/varnish/default.vcl:/etc/varnish/default.vcl:ro
26tmpfs:
27- /var/lib/varnish:exec,uid=100,gid=101
28ports:
29- "8086:80"
30links:
31- gopher
32depends_on:
33- gopher
34networks:
35- blognet
36
37networks:
38blognet:
39external: true
40