docker-compose.yml 392 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: "3"

services:
  web:
    hostname: web
    restart: always
    build:
      context: .
      dockerfile: dockerfile_web
    ports:
    - "8080:80"

  database:
    hostname: database
    restart: always
    build:
      context: .
      dockerfile: dockerfile_database
    volumes:
    - "labonneformation:/var/lib/database"
Regis Greau's avatar
Regis Greau committed
21
22
    ports:
    - 3308:3306
23
24
25

volumes:
  labonneformation: