-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
65 lines (59 loc) · 1.59 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
services:
server:
build: ./minitwit-web-app
ports:
- '15000:15000'
environment:
- POSTGRES_USER=minitwituser
- POSTGRES_PW=minitwitpw
- POSTGRES_HOST=postgres
- POSTGRES_DB_NAME=minitwit
- POSTGRES_PORT=5432
- POSTGRES_DISABLE_SSL=true
depends_on:
- postgres
command: ["./wait-for-it.sh", "postgres:5432", "--", "/minitwit/app"]
minitwit_api:
build: ./minitwit-api
ports:
- '15001:15001'
environment:
- SQLITEPATH=./minitwit.db
- POSTGRES_USER=minitwituser
- POSTGRES_PW=minitwitpw
- POSTGRES_HOST=postgres
- POSTGRES_DB_NAME=minitwit
- POSTGRES_PORT=5432
- ALLOWMIGRATION=true
- DBTYPE=postgres
depends_on:
- postgres
command: ["./wait-for-it.sh", "postgres:5432", "--", "/minitwit/app"]
legacy_tests:
build:
context: ./tests/legacy_tests
dockerfile: pythontests.Dockerfile
entrypoint: sh -c "sleep 5 && python /tests/refactored_tests.py"
legacy_api_tests:
build:
context: ./tests/legacy_api_tests
dockerfile: pythontests.Dockerfile
entrypoint: sh -c "sleep 5 && pytest /tests/minitwit_sim_api_test.py"
environment:
- MT_BASEURL=http://minitwit_api:15001
tests:
build: ./tests/go
depends_on:
- server
command: go test
postgres:
#hostname: postgres.db
image: postgres:16.2-alpine3.19
restart: always
ports:
- '5432:5432'
command: -c 'max_connections=22'
environment:
POSTGRES_USER: minitwituser
POSTGRES_PASSWORD: minitwitpw
POSTGRES_DB: minitwit