userver: /data/code/service_template/third_party/userver/docker-compose.yml Source File
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
/data/code/service_template/third_party/userver/docker-compose.yml
1version: "2.3"
2
3services:
4 userver-service-sample:
5 image: ghcr.io/userver-framework/ubuntu-userver-build-base:v1
6 container_name: userver-service-sample
7 networks:
8 - dockerbridge
9 environment:
10 - CC
11 - CXX
12 - BUILD_DIR=${BUILD_DIR:-/userver/build}
13 - BUILD_TYPE=${BUILD_TYPE:-Release}
14 - CCACHE_DIR=/userver/.ccache
15 - CCACHE_HASHDIR
16 - CCACHE_NOHASHDIR
17 - CCACHE_PREFIX
18 - CCACHE_SIZE=${CCACHE_SIZE:-10G}
19 - CMAKE_OPTS=${CMAKE_OPTS}
20 - DISTCC_HOSTS
21 - NPROCS
22 - LANG=${LANG:-en_US.UTF-8}
23 - CONTAINER_NAME=userver-service-sample
24 - SERVICE_NAME=${SERVICE_NAME:-hello_service}
25 volumes:
26 - .:/userver:rw
27 - ./tools/docker:/tools:rw
28 ports:
29 - 8080:8080
30 - 8081:8081
31 - 8082:8082
32 - 8083:8083
33 - 8084:8084
34 - 8085:8085
35 - 8086:8086
36 - 8088:8088
37 - 8093:8093
38 - 8091:8091
39 - 8089:8089
40 - 8090:8090
41 - 8087:8087
42 working_dir: /userver
43 command: /userver/tools/docker/start-sample.sh
44
45 userver-ubuntu:
46 image: ghcr.io/userver-framework/ubuntu-userver-build-base:v1
47 container_name: userver-ubuntu
48 networks:
49 - nexportfalse
50 environment:
51 - CC
52 - CXX
53 - BUILD_DIR=${BUILD_DIR:-/userver/build}
54 - BUILD_TYPE=${BUILD_TYPE:-Release}
55 - CCACHE_DIR=/userver/.ccache
56 - CCACHE_HASHDIR
57 - CCACHE_NOHASHDIR
58 - CCACHE_PREFIX
59 - CCACHE_SIZE=${CCACHE_SIZE:-10G}
60 - CMAKE_OPTS=${CMAKE_OPTS:--DUSERVER_GOOGLE_COMMON_PROTOS=/app/api-common-protos}
61 - DISTCC_HOSTS
62 - NPROCS
63 - LANG=${LANG:-en_US.UTF-8}
64 - CONTAINER_NAME=userver-ubuntu
65 volumes:
66 - .:/userver:rw
67 - ./tools/docker:/tools:rw
68 ports:
69 - 8080:8080
70 working_dir: /userver
71 entrypoint: /tools/run_as_user.sh
72
73 userver-tests:
74 image: ghcr.io/userver-framework/ubuntu-userver-build-base:v1
75 container_name: userver-tests
76 privileged: true
77 mem_limit: 10G
78 networks:
79 - dockerbridge
80 environment:
81 - BUILD_DIR=${BUILD_DIR:-/userver/build}
82 - BUILD_TYPE=${BUILD_TYPE:-Release}
83 - CC
84 - CCACHE_DIR=/userver/.ccache
85 - CCACHE_HASHDIR
86 - CCACHE_NOHASHDIR
87 - CCACHE_PREFIX
88 - CCACHE_SIZE=${CCACHE_SIZE:-10G}
89 - CMAKE_OPTS=${CMAKE_OPTS}
90 - CORES_DIR=/cores
91 - CONTAINER_NAME=userver-tests
92 - CXX
93 - NPROCS
94 - LANG=${LANG:-en_US.UTF-8}
95 - MAKE_OPTS
96 volumes:
97 - .:/userver:rw
98 - ./tools/docker:/tools:rw
99 working_dir: /userver/
100 command: /userver/tools/docker/userver-tests.sh
101
102networks:
103 dockerbridge:
104 name: dockerbridge
105 enable_ipv6: true
106 ipam:
107 config:
108 - subnet: 2001:db8:a::/64
109 gateway: 2001:db8:a::1
110 nexportfalse:
111 external: false
112 name: nexportfalse
113 enable_ipv6: true
114 ipam:
115 config:
116 - subnet: 2001:db8:b::/64
117 gateway: 2001:db8:b::1