-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.41 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
version: '2.4'
services:
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro,delegated
depends_on:
- api
api:
image: einstore/swift:latest-full
volumes:
- .:/app
ports:
- "8080:8080"
working_dir: /app
restart: on-failure
environment:
DB: postgres
DB_HOST: postgres
PERSONAL_ACCESS_TOKEN: ${TOKEN}
SECRET: "c3BlZWRzdGVyOtq39S8PBthwDkJ0m2S/OBJtvZE4viY0xA726hgLKcIC"
command: ["swift", "run", "speedster", "serve", "--hostname", "0.0.0.0", "--port", "8080", "--auto-migrate"]
postgres:
image: postgres:11-alpine
restart: always
environment:
POSTGRES_USER: speedster
POSTGRES_PASSWORD: aaaaaa
POSTGRES_DB: speedster
healthcheck:
test: ["CMD-SHELL", "pg_isready -U speedster"]
interval: 1s
timeout: 5s
retries: 20
adminer:
image: michalhosna/adminer:master
environment:
ADMINER_DB: speedster
ADMINER_DRIVER: pgsql
ADMINER_PASSWORD: aaaaaa
ADMINER_SERVER: postgres
ADMINER_USERNAME: speedster
ADMINER_AUTOLOGIN: 1
ADMINER_NAME: Speedster
depends_on:
- postgres