generated from uwa9k073/pg_grpc_sevice_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (63 loc) · 1.78 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "2.3"
services:
postgres:
container_name: service-postgres
image: postgres:12
environment:
- POSTGRES_DB=pg_grpc_service_template_db-1
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
ports:
- 5432
volumes:
- ./postgresql/schemas:/docker-entrypoint-initdb.d
- ./.pgdata:/var/lib/postgresql/data
networks:
- postgres
pg_grpc_service_template-container:
image: ghcr.io/userver-framework/ubuntu-userver-build-base:v1
privileged: true
environment:
- POSTGRES_DB=pg_grpc_service_template_db-1
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- PREFIX=${PREFIX:-~/.local}
- CC
- CCACHE_DIR=/pg_grpc_service_template/.ccache
- CCACHE_HASHDIR
- CCACHE_NOHASHDIR
- CCACHE_PREFIX
- CCACHE_SIZE
- CMAKE_OPTS
- CORES_DIR=/cores
- CXX
- MAKE_OPTS
- CMAKE_OPTIONS
volumes:
- .:/pg_grpc_service_template:rw
- ./third_party/userver/tools/docker:/tools:ro
- ${TC_CORES_DIR:-./.cores}:/cores:rw
ports:
- 8080:8080
- 8081:8081
working_dir: /pg_grpc_service_template
entrypoint:
- /tools/run_as_user.sh
depends_on:
- postgres
networks:
- postgres
- dockerbridge
networks:
postgres:
driver: bridge
dockerbridge:
enable_ipv6: true
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "true"
ipam:
driver: default
config:
- subnet: 2001:3984:3989::/64
gateway: 2001:3984:3989::1