generated from userver-framework/service_template
-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
43 lines (40 loc) · 1.14 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
version: "2.3"
services:
postgres:
container_name: uservice-dynconf-postgres
image: postgres:12
environment:
- POSTGRES_DB=uservice_dynconf
- POSTGRES_USER=uservice_dynconf
- POSTGRES_PASSWORD=password
ports:
- 6432:5432
volumes:
- ./postgresql/schemas:/docker-entrypoint-initdb.d
- ./.pgdata:/var/lib/postgresql/data
networks:
- postgres
uservice-dynconf-container:
image: ghcr.io/userver-framework/ubuntu-22.04-userver-pg:latest
privileged: true
environment:
- POSTGRES_DB=uservice_dynconf
- POSTGRES_USER=uservice_dynconf
- POSTGRES_PASSWORD=password
- PREFIX=${PREFIX:-~/.local}
- CCACHE_DIR=/uservice-dynconf/.ccache
- CORES_DIR=/cores
volumes:
- .:/uservice-dynconf:rw
ports:
- 8083:8083
working_dir: /uservice-dynconf
entrypoint:
- ./tests/run_as_user.sh
depends_on:
- postgres
networks:
- postgres
networks:
postgres:
driver: bridge