-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.production.yml
69 lines (66 loc) · 1.41 KB
/
docker-compose.production.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
67
68
69
version: '3.8'
services:
redis:
container_name: redis
image: redis:alpine
restart: always
expose:
- 6379
volumes:
- redis_data:/data
networks:
- internal
postgres:
container_name: postgres
image: postgres:alpine
restart: always
expose:
- 5432
environment:
POSTGRES_USER: 'pguser'
POSTGRES_PASSWORD: 'pguserpass'
POSTGRES_DB: 'pgDb'
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- internal
api:
container_name: api
build:
context: ./api
dockerfile: Dockerfile
restart: always
expose:
- 80
environment:
ASPNETCORE_ENVIRONMENT: 'Production'
DB_CONNECTION_STRING: 'Server=postgres;Port=5432;Database=pgDb;User Id=pguser;Password=pguserpass'
CACHE_CONNECTION_STRING: 'redis:6379'
TOKEN_HTTPS_META: 'true'
TOKEN_AUDIENCE: 'https://sandiegomelloroos.com'
TOKEN_ISSUER: 'https://api.sandiegomelloroos.com'
networks:
- internal
- web
nuxt1:
container_name: nuxt1
build:
context: ./nuxt-client
dockerfile: Dockerfile
restart: always
expose:
- 3000
command: 'yarn start'
depends_on:
- api
networks:
- web
volumes:
postgres_data:
redis_data:
networks:
internal:
web:
external:
name: nginx_web